fix: Support grouping histogram quantile aggregations over non-Attribute columns - #2707
Conversation
🦋 Changeset detectedLatest commit: 4a125a5 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Greptile SummaryThis PR fixes histogram quantile queries that group by non-attribute columns. The main changes are:
Confidence Score: 5/5This looks safe to merge.
Important Files Changed
Reviews (5): Last reviewed commit: "Merge branch 'main' into drew/fix-histog..." | Re-trigger Greptile |
ccc8b7c to
5d336d3
Compare
🟡 Tier 3 — StandardIntroduces new logic, modifies core functionality, or touches areas with non-trivial risk. Why this tier:
Review process: Full human review — logic, architecture, edge cases. Stats
|
E2E Test Results✅ All tests passed • 241 passed • 1 skipped • 1076s
Tests ran across 4 shards in parallel. |
Deep ReviewScope: histogram quantile grouping fix in ✅ No critical issues found. The 🟡 P2 -- recommended
🔵 P3 nitpicks (1)
Reviewers (3): correctness, testing, maintainability. Testing gaps: none that block — the target scenario (quantile grouped by a non-Attribute column) has integration coverage with value assertions for both linear and exponential histograms; the unit-level |
5d336d3 to
76f0857
Compare
Summary
This PR fixes the histogram quantile query, which previously errored when grouping by a column that was not already selected in the innermost SELECT (such as ServiceName). The group by columns are now selected directly in the innermost query and forwarded through to the outer query / results.
Integration tests have been added to confirm the fix.
Screenshots or video
Previously:
Now:
How to test on Vercel preview
View a quantile aggregation for the
http.client.duration (Histogram)metric from the Demo Metrics source. Group by ServiceName (or another column).References