Repository navigation
Conversation
The key list was deduplicated before the grouping sets were expanded, so `CUBE(x, x)` produced the two sets of `CUBE(x)` and `ROLLUP(x, x)` those of `ROLLUP(x)`, while the same sets spelled out as `GROUPING SETS` were kept. The positions of the repeated keys are now carried to the transforms, which expand the list as written, and serialized under a new per-step version; a peer that would drop them gets `SUPPORT_IS_DISABLED` instead of wrong results. ClickHouse#117904
|
Workflow [PR], commit [d3ba0b4] Summary: ✅
AI ReviewSummaryThis PR keeps repeated Final Verdict✅ No actionable findings. LLVM Coverage ReportMeasured on commit d3ba0b4.
Changed lines: Changed C/C++ lines covered: 216/218 (99.08%) · Uncovered code |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Object file sizes10 object files changed (+52.18 KiB total), 0 added.
716 more object files are built by the master warmup baseline only (it builds every object-file target, a pull request build only Compile time of recompiled translation units15 translation units recompiled, 94 s compile time in total, 15 of them have a recent master baseline. |
|
This is ready from my side. The two red checks are on the CI side: |
|
Merged master to pick up #120932, which fixes the |
|
@KochetovNicolai could you take a look when you have a moment? This touches CubeStep/RollupStep and the planner's GROUP BY expansion, which you reworked in #114950. |
The key list was deduplicated before the grouping sets were expanded, so
CUBE(x, x)produced the sets ofCUBE(x). The positions of repeated keys are now passed to theCube/Rolluptransforms and serialized under a new per-step version; a peer too old to read them fails withSUPPORT_IS_DISABLEDinstead of returning wrong results.Closes: #117904
Supersedes: #118186
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fixed
GROUP BY CUBEandGROUP BY ROLLUPlosing grouping sets when an expression is repeated in the list, e.g.CUBE(x, x)returned the sets ofCUBE(x).Workflow [PR]
Sync PR [sync-upstream/pr/120671]