Repository navigation
Cherry pick #130158 to 26.10: Fix Iceberg manifest-list pruning skipping NULL partitions for ifNull/coalesce filters - #132975
Merged
robot-clickhouse-ci-1 merged 3 commits intoNov 19, 2026
Conversation
…/coalesce #129929 evaluates a partition field whose manifest-list summary contains NULL as the range [lower, +inf] (NULL sorts last). The key that range is checked against comes from buildPartitionKeyFromSpec, which strips Nullable from every source column. For a non-Nullable type ifNull, coalesce and assumeNotNull report themselves monotonic, so the +inf bound is left untransformed and e.g. [5, +inf] against the set {0} for `ifNull(b, 0) IN (0)` prunes the manifest that holds the NULL row. Build the manifest-list pruner's key with the source columns' own types (keep_nullable), the convention MergeTree's min-max index uses for a Nullable partition column. Those functions then see a range that can hold NULL and decline, while NULL-rejecting predicates keep pruning on the lower bound. The file-level pruner keeps the stripped key. Rejected: evaluating with Nullable data_types against the non-Nullable key (chain functions would receive a type they were not built for); the whole universe for every NULL-bearing field (loses the lower-bound pruning #129929 added and tests). Closes #130040 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…uning-nullable-key Fix Iceberg manifest-list pruning skipping NULL partitions for `ifNull`/`coalesce` filters
Contributor
|
The |
robot-clickhouse
force-pushed
the
backport/26.10/130158
branch
from
November 19, 2026 16:13
2805b8f to
1697191
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Original pull-request #130158
Do not merge this PR manually
This pull-request is a first step of an automated backporting.
It contains changes similar to calling
git cherry-picklocally.If you intend to continue backporting the changes, then resolve all conflicts if any.
Otherwise, if you do not want to backport them, then just close this pull-request.
The check results does not matter at this step - you can safely ignore them.
Before you resolve anything
Conflicts are often caused by a prerequisite change that has not been backported yet, rather than by a real divergence. The bot re-tries this cherry-pick against the release branch on every run, so if that is the case here it will merge itself as soon as the prerequisite lands, and you will see a comment saying so. Manual resolution is only needed while the conflict persists.
Troubleshooting
If the conflicts were resolved in a wrong way
If this cherry-pick PR is completely screwed by a wrong conflicts resolution, and you want to recreate it:
pr-cherrypicklabel from the PRYou also need to check the Original pull-request for
pr-backports-createdlabel, and delete if it's presented thereThe PR source
The PR is created in the CI job