Skip to content

Fix various trino query things - #355

Open
Bohreromir wants to merge 7 commits into
mainfrom
fix-trino-query-length-display
Open

Bohreromir wants to merge 7 commits into
mainfrom
fix-trino-query-length-display

Conversation

@Bohreromir

Copy link
Copy Markdown
Member

All in seperate commits, I hope its readable that way

Fixes:

  • querytimer display to fall back to ms instead of showing 0s
  • Wrongly flagged exactly MAX_CLIENT_ROWS
  • the query button opening the dropdown
  • Layout shifts when running a query

Also reports the case of being over the row limit to the user

@github-actions

github-actions Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 57.03% 2829 / 4960
🔵 Statements 61.88% 4073 / 6582
🔵 Functions 68.25% 1077 / 1578
🔵 Branches 48.72% 1496 / 3070
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/lib/components/trino/StatementResult.svelte 0% 0% 0% 0% 21-284
src/lib/server/trino/queries.ts 100% 94.44% 100% 100%
src/lib/server/trino/result-collector.ts 77.55% 70.96% 100% 82.6% 24, 30-36, 39, 44, 90
src/lib/types/query.ts 100% 100% 100% 100%
src/routes/(app)/trino/+page.svelte 0% 0% 0% 0% 404-940
src/routes/(app)/trino/query-runner.svelte.ts 0% 0% 0% 0% 38-331
Generated in workflow #1073 for commit 835f8fa by the Vitest Coverage Report Action

@Bohreromir Bohreromir changed the title Fix trino query length display Fix various trino query things Oct 6, 2026
@Bohreromir
Bohreromir marked this pull request as ready for review October 6, 2026 16:58
Comment thread e2e/support/start-mock-trino.ts Outdated
res.writeHead(204).end();
return;
}
if (req.method === 'GET' && req.url?.startsWith('/v1/statement/executing/q-huge/')) {

@Bohreromir Bohreromir Oct 6, 2026 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not the nicest way, but I have the feeling we'll refactor the test mocking at some point anyway

…h-display

# Conflicts:
#	src/lib/components/trino/StatementResult.svelte
#	src/lib/server/trino/result-collector.test.ts
#	src/lib/server/trino/result-collector.ts
@Bohreromir Bohreromir moved this from Development: Waiting for Review to Development: Done in Stackable Engineering Oct 14, 2026
@Bohreromir Bohreromir moved this from Development: Done to Development: Waiting for Review in Stackable Engineering Oct 14, 2026
@Bohreromir
Bohreromir force-pushed the fix-trino-query-length-display branch from 88d3ffc to 835f8fa Compare October 14, 2026 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Development: Waiting for Review

Development

Successfully merging this pull request may close these issues.

1 participant