Repository navigation
Route time_bucket(INTERVAL ...) charts to rollups - #438
Merged
Merged
Conversation
Monoscope production impact · Worth checkingProject Evidence window (UTC): 2026-10-19 08:39:54.190011094 UTC → 2026-10-26 08:39:54.190011094 UTC
Production details are available in Monoscope. Coverage: Open Monoscope for evidence and coverage details. |
|
Review: Route time_bucket(INTERVAL ...) charts to rollups Small, well-scoped change. It reuses Minor points, none blocking:
LGTM otherwise. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The rollup matcher only recognised
time_bucket('1 hour', timestamp). Thetime_bucket(INTERVAL '1 hour', timestamp)spelling declined asunsupported_shapeand scanned raw rows. On prod, a cold 30d shipbubble hourly chart took 62s, against 2.8s on the repeat. Monoscope's own widgets use the string spelling; hand-written SQL hits this.IntervalMonthDayNanoliteral, usingtime_bucket's owninterval_to_micros. Month widths are still refused.Regression test
an_interval_bucket_width_routes_like_its_string_spellingfails with the fix disabled (red arm checked).Local signoff (
make ci-signoff, rebased on 5877d77): fmt, clippy, test, pg-smoke and e2e all pass and are attested. Wall-clock timing tests (checkpoint_does_not_rescan…,a_deletion_vector_disables_the_ordinals) flaked under host load ~300 and passed on retry; they are unrelated to this change.🤖 Generated with Claude Code