Repository navigation
Revert "Revert "Filter PartsSplitter layers on the key columns the sorting expression computed"" - #125827
Conversation
…sorting expression computed""
|
Workflow [PR], commit [4450985] Summary: ✅
AI ReviewSummaryThis PR restores Final VerdictStatus: ✅ Approve |
…t-120058-fix/parts-splitter-layer-filter-key-columns
…une unused key computations The layer filter of `PartsSplitter` refers to the key columns by `column_names`, which are alias-free, but it was resolved against `primary_key.sample_block`, whose names carry the aliases of the key (`PRIMARY KEY (k AS a)`), so a layered `FINAL` read threw `UNKNOWN_IDENTIFIER`. Resolve it against `column_names` paired with `data_types` instead. Composing the filter with the whole key expression kept the computations of the key columns the filter does not use, and `reorderColumns` replaced the outputs without pruning them. The join-by-shards layers split on the common prefix of the join keys and read only the query's columns, so a computed key suffix (`toDate(b)`) required an unread column and threw `NOT_FOUND_COLUMN_IN_BLOCK`. Call `removeUnusedActions` after `reorderColumns`. Related: #125549 Related: #125550 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Compile time of recompiled translation units7 translation units recompiled, 13 s compile time in total, 7 of them have a recent master baseline. |
|
🕵 @groeneai, investigate the failure: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=125827&sha=391aadc3138036028407227f53c82e2513a11d31&name_0=PR&name_1=Unit%20tests%20%28asan_ubsan%2C%20function_prop_fuzzer%29 ( |
|
The fix is in progress: #126210. The stuck worker at Mechanism: #120908 (comment). #126210 changes only the test harness; its CI has finished and it is mergeable, waiting for a review. CIDB: 24 occurrences since 2026-10-15 (3 on master), 0 in the 640 runs of 2026-10-14. |
|
🕵 Merged master to pull in #126345, which fixes the flaky |
|
This is #120975, and #125293 is the only fix in progress. All 150 lines of I checked #125293 on the server version this check uses: I ran 04653 on a
#125293 is green and mergeable, and its one review thread is resolved, but no maintainer has reviewed it since it opened on 2026-10-12. I can't approve or label PRs here, so it needs a maintainer to approve and merge it with |
…metadata Master now refuses an alias in `PRIMARY KEY` of a new table (`KeyDescription::checkNoAlias`), so `CREATE TABLE ... PRIMARY KEY (k AS a)` failed with `BAD_ARGUMENTS` and broke the merge queue. Such a key still comes from the metadata stored by an older server, so the aliased-key case moves to a `.sh` test that edits the stored metadata of a `clickhouse-local` table, as `05301_storage_key_alias_stored_definition` does. The remaining test is renamed after what it covers. Merge queue run: https://github.com/ClickHouse/ClickHouse/actions/runs/39646520885 PR: #125827 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reverts #125763
Workflow [PR]
Sync PR [sync-upstream/pr/125827]
Version info
26.11.1.563-master(included in26.11and later)