Repository navigation
Extend aggregation-in-order LIMIT push-down performance test - #110400
Merged
Merged
Conversation
Add queries for the cases raised in review of #104859: `ORDER BY` as a single-column subset of `GROUP BY`, `GROUP BY` columns permuted relative to the table sorting key, and a permuted `GROUP BY` with an extra non-key column combined with a subset `ORDER BY`. Related: #104859 (comment) Co-Authored-By: Claude Fable 5 <[email protected]>
Contributor
|
Workflow [PR], commit [01cec98] Summary: ✅
AI ReviewSummaryThis PR extends Final VerdictStatus: ✅ Approve |
PedroTadim
approved these changes
Jul 14, 2026
PedroTadim
enabled auto-merge
July 14, 2026 14:43
zeekay
pushed a commit
to hanzoai/datastore
that referenced
this pull request
Sep 11, 2026
…r-limit-permuted-group-by Extend aggregation-in-order LIMIT push-down performance test
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.
Extends
tests/performance/aggregation_in_order_limit.xmlwith the cases raised in review of #104859:ORDER BYas a single-column subset ofGROUP BY,GROUP BYcolumns permuted relative to the table sorting key, and a permutedGROUP BYwith an extra non-key column combined with a subsetORDER BY.The push-down applies in all three cases because the group-by keys are matched as a set against the table sorting key, so the
ORDER BYremains a prefix of the group-by sort description. Measured onhits_100m_singlewithoptimize_aggregation_in_order_limiton/off (master26.7.1.899, best of 5 runs):GROUP BY CounterID, EventDate ORDER BY CounterID LIMIT 10GROUP BY EventDate, CounterID ORDER BY CounterID, EventDate LIMIT 10GROUP BY RegionID, EventDate, CounterID ORDER BY CounterID, EventDate LIMIT 10In all three cases
read_rowsdrops from 100M to 43M, identical to the canonical prefix-match queries already in the test — confirming the same plan is used.Related: #104859 (comment)
Changelog category (leave one):
Documentation entry for user-facing changes
🤖 Generated with Claude Code
Version info
26.7.1.943(included in26.7and later)