Repository navigation
Backport #111604 to 26.3: Set skip index: route NULL-constant atoms to UNKNOWN so granules are not wrongly pruned - #130735
Conversation
…o UNKNOWN so granules are not wrongly pruned
|
Workflow [BackportPR], commit [0f5f672] Summary: ✅ |
|
The build fails in A one-commit fix (2 lines, a fast-forward of - ColumnConstPtr unknown_column = unknown_type->createColumnConst(1, UNKNOWN_FIELD);
- const auto & unknown_node = result_dag.addColumn(std::move(unknown_column), std::move(unknown_type), std::move(unknown_name));
+ ColumnPtr unknown_column = unknown_type->createColumnConst(1, UNKNOWN_FIELD);
+ const auto & unknown_node = result_dag.addColumn({unknown_column, unknown_type, unknown_name});Checked on this branch with clang-21 (Debug): it builds, Merging this alone also brings the pruning loss of #123705 to 26.3: a |
The backport of #111604 used `ColumnConstPtr` and the three-argument `ActionsDAG::addColumn(column, type, name)` overload, neither of which exists in 26.3. Build failed with: error: unknown type name 'ColumnConstPtr' error: no viable conversion from 'ColumnPtr' to 'ColumnConst' Rewrite the NULL-mask mapping to build a `ColumnWithTypeAndName` and call the single-argument `addColumn`, matching the adjacent `else` branch in the same function. Build log: https://s3.amazonaws.com/clickhouse-test-reports/PRs/130735/4dc280f0a6520269e1bc114481c6d319f80319d4/build_amd_debug/build_clickhouse/build_clickhouse.log
Original pull-request #111604
This pull-request is a last step of an automated backporting.
Treat it as a standard pull-request: look at the checks and resolve conflicts.
Merge it only if you intend to backport changes to the target branch, otherwise just close it.
The PR source
The PR is created in the CI job