Repository navigation
Prepare the hypothetical object store code for projections - #115763
Conversation
|
Workflow [PR], commit [a9f54ff] Summary: ✅
AI ReviewSummaryThis PR is a behavior-preserving refactor around Final Verdict✅ No findings. LLVM Coverage Report
Changed lines: Changed C/C++ lines covered: 183/210 (87.14%) · Uncovered code |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
Only the stripped binary is compared: the official master build keeps debug symbols while PR builds strip them, so the other binaries differ by construction. Object file sizes189 object files changed (+81.09 KiB total), 1 added.
738 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 units1599 translation units recompiled, 9205 s compile time in total, 1598 of them have a recent master baseline. |
…ColumnsPass The pass set the type of every reference to an ARRAY JOIN column (the first argument of `tupleElement`) to the type of the ARRAY JOIN expression, for every expression, pruned or not. The analyzer can give a reference a different type than the definition: `join_use_nulls` (ARRAY JOIN on the nullified side of a RIGHT/FULL JOIN) and `group_by_use_nulls` (the column is a ROLLUP/CUBE key) make it `Nullable`, and a `USING` key gives it the common supertype. After the overwrite `tupleElement` was re-resolved to the narrower type while its parent function still expected the old one, so the query tree validator of debug and sanitizer builds threw `LOGICAL_ERROR` "Function tupleElement(__array_join_exp_1, 'a') > 0 expects argument 1 to have Nullable(Int64) type but receives Int64 after running PruneArrayJoinColumns pass". Release builds were not affected: the planner rebuilds a function whose argument types do not match. Now `pruned_type` is set only when `pruneNestedFunctionArguments` actually pruned the expression, so references of other expressions keep their type, and a reference of a pruned expression keeps its own `Nullable`. A `USING` key or a matcher column is a direct reference, which marks the expression fully used, so it is never pruned. Found by the server-side AST fuzzer in Stress tests (PR ClickHouse#126991, ClickHouse#118582, ClickHouse#115763). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Workflow [PR]
Sync PR [sync-upstream/pr/115763]
Version info
26.8.1.1873(included in26.8and later)