Repository navigation
Add regression test for correlated subquery with GROUPING SETS and group_by_use_nulls - #110956
Conversation
…oup_by_use_nulls The fuzzer query from issue #102273 used to fail with a logical error "Unexpected return type from `bitNot`. Expected UInt64. Got Nullable(UInt64)" because the correlated column kept its pre-Nullable type while the post-aggregation rows carried Nullable values. The bug was fixed in the analyzer by #100365, which covered `WITH ROLLUP` and `WITH CUBE` shapes in test 04053; this adds the `GROUPING SETS` shape. Co-Authored-By: Claude Fable 5 <[email protected]>
|
Workflow [PR], commit [04ae628] Summary: ✅ AI ReviewSummaryThis PR adds a focused stateless regression test for issue Missing context / blind spots
Final Verdict
|
|
The previous red CI ( Root cause: This is fixed by the open PR #110954 ("Fix |
…102273 Add regression test for correlated subquery with `GROUPING SETS` and `group_by_use_nulls`
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Documentation entry for user-facing changes
Adds a regression test for the fuzzer query from the issue below. A correlated scalar subquery referencing a
GROUPING SETSkey undergroup_by_use_nulls = 1used to fail with a logical errorUnexpected return type from bitNot. Expected UInt64. Got Nullable(UInt64), because the correlated column kept its pre-Nullabletype while the post-aggregation rows carriedNullablevalues.The bug was fixed in the analyzer by the PR linked below, whose test 04053 covers the
WITH ROLLUPandWITH CUBEshapes; this test pins theGROUPING SETSshape found by the fuzzer (distilled shape with and withoutgroup_by_use_nulls, plus the original fuzzer query scaled down). Verified that the test passes on current master and covers the previously failing pattern.Closes: #102273
Related: #100365
Related: #102597
Version info
26.7.1.1188(included in26.7and later)