Repository navigation
Add test for Distributed table inside Merge with distributed_group_by_no_merge=1 - #102112
Conversation
…rge=1` is inside a Merge table When a `StorageMerge` with multiple source tables contains a `Distributed` table and `distributed_group_by_no_merge=1` is set, `StorageMerge::getQueryProcessingStage` returns `WithMergeableState` (min of source stages for multiple tables). Later, `ReadFromMerge::createPlanForTable` passes this as `to_stage` to the Distributed table's `getQueryProcessingStage`, which asserted `to_stage == Complete`. The assertion was overly strict. The `distributed_group_by_no_merge=2` code path already returns its stage without checking `to_stage`, and callers handle the mismatch. Remove the assertion and let the caller decide the actual processing stage. Fixes: #75604 CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=99935&sha=1744b5eab84a5f177462c30caa27abc25746e98c&name_0=PR&name_1=BuzzHouse%20%28amd_tsan%29 Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
|
Workflow [PR], commit [8e53c54] Summary: ✅ AI ReviewSummaryThis PR adds a new stateless regression test for the ClickHouse Rules
Final Verdict
|
Why returning
|
|
There is already a PR from Groene AI, can you please review it? #100859 |
|
Thanks, unassigned @azat from it - there was no reaction for two weeks. |
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
|
The |
| @@ -0,0 +1,29 @@ | |||
| -- https://github.com/ClickHouse/ClickHouse/issues/75604 | |||
There was a problem hiding this comment.
This PR appears test-only (tests/queries/... changed). For test-only changes, Changelog category should be Not for changelog (or Build/Testing/Packaging Improvement), and a Changelog entry is not required. Please update the PR template fields to match the actual diff.
…up-by-no-merge-in-merge-table
…up-by-no-merge-in-merge-table
…up-by-no-merge-in-merge-table
…up-by-no-merge-in-merge-table
…up-by-no-merge-in-merge-table
…up-by-no-merge-in-merge-table
This PR adds an additional test for issue #75604 (
Mergetable wrapping aDistributedtable withdistributed_group_by_no_merge=1). The source-code fix was merged separately in #100859; the existing test there (04064_merge_distributed_group_by_no_merge.sql) covers a simpleMergeoverDistributed+Memory. This PR adds the more complex scenario from the original issue: aGLOBAL ANY INNER JOINbetween theMerge-over-Distributedtable and anotherDistributedtable, with aGLOBAL INsubquery.Originally this PR also contained the source-code fix (removing an overly strict assertion in
StorageDistributed::getQueryProcessingStage); after rebasing on master that change is no longer in the diff because #100859 applied an equivalent fix.CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=99935&sha=1744b5eab84a5f177462c30caa27abc25746e98c&name_0=PR&name_1=BuzzHouse%20%28amd_tsan%29
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