Skip to content

test(query-engine): SQL quantile roll-up over several windows - #872

Merged
milindsrivastava1997 merged 1 commit into
mainfrom
871-test-sql-quantile-roll-up
Oct 14, 2026
Merged

milindsrivastava1997 merged 1 commit into
mainfrom
871-test-sql-quantile-roll-up

Conversation

@milindsrivastava1997

Copy link
Copy Markdown
Contributor

Closes #871.

Adds sql_quantile_by_subset_over_several_windows_equals_the_merged_sketch to rollup_tests.rs: SELECT service, QUANTILE(0.9, value) … DATEADD(s, -300, NOW()) … GROUP BY service, served by a DDSketch grouped by (endpoint, service) with 60 s tumbling windows, must equal the p90 of one sketch over all the data. This is the shape --planner saved (#866) writes for sketch-bench's p99 CUBE; until now only the HLL roll-up was tested through SQL, over one window.

The query time is a multiple of the window, as the e2e client floors eval times to the repeat interval. At an unaligned time (the module's 1000 s) the windows fall off the epoch grid and the engine finds no local data; that is expected, not tested here.

Testing: cargo test -p query_engine_rust --lib rollup_tests: 12 pass.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@milindsrivastava1997
milindsrivastava1997 merged commit 93a66d5 into main Oct 14, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(query-engine): no test for a SQL quantile roll-up

1 participant