Repository navigation
Fix sparse Nullable subcolumn reads from compact parts - #114335
acking-you wants to merge 2 commits into
Conversation
Sparse Nullable null maps are derived from sparse offsets, but the null-map leaf used a regular subcolumn creator. createFromPath only applies regular creators to ancestors, so compact parts with column-level marks produced a null ColumnPtr and crashed while extracting the .null subcolumn. Use the existing lazy leaf materialization hook and add a stateless regression test that pins Compact storage, sparse serialization, and column-level marks.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a8d7dcd970
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| @@ -0,0 +1,31 @@ | |||
| -- Tags: no-parallel-replicas, no-random-merge-tree-settings | |||
There was a problem hiding this comment.
Keep this test enabled for parallel-replica runs
Remove the no-parallel-replicas tag: clickhouse-test skips tagged cases entirely in the ParallelReplicas job (tests/clickhouse-test:2858-2859), while this test neither depends on a local query-plan shape nor uses behavior incompatible with parallel replicas. The runner's automatic mode for otherwise eligible tests only collects statistics and does not execute the query on parallel replicas (tests/clickhouse-test:1765-1777), so this tag unnecessarily removes coverage of the compact-part .null regression.
AGENTS.md reference: AGENTS.md:L143-L143
Useful? React with 👍 / 👎.
|
Workflow [PR], commit [f289eff] Summary: ❌
AI ReviewSummaryThis PR fixes extraction of the sparse PR Metadata
Final Verdict
|
…licas Remove the unnecessary test exclusion requested in review. ClickHouse#114335
Fix server aborts when reading the
.nullsubcolumn of aNullablecolumn with sparse serialization from a CompactMergeTreepart using column-level marks (write_marks_for_substreams_in_compact_parts = false). Materialize the derived null map through the existing lazy leaf creator before applying parent subcolumn creators.The regression test covers
Compact+Sparse+.cmrk3reads of.nulland.size, and remains enabled for parallel-replica runs.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fix a server crash when reading the
.nullsubcolumn of a sparseNullablecolumn from CompactMergeTreeparts with column-level marks.Workflow [PR]
Sync PR [sync-upstream/pr/114335]