Repository navigation
Backport #130192 to 26.9: Keep the NULL partition in Delta Lake partition pruning when the filter's set holds NULL - #130720
Conversation
…tition pruning when the filter's set holds `NULL`
|
Workflow [BackportPR], commit [34fc4f8] Summary: ✅ |
…nes 1 file On 26.9 `ifNull(p, 0) IN (0)` returns no rows instead of [2] with and without the backported fix: partition pruning drops the NULL partition, and a MergeTree table partitioned by the same Nullable column returns the same wrong rows on 26.9. The case tests another bug, so this backport's test does not keep it. On 26.9 the fix keeps the NULL partition's file for `has([5, 7], p)`, so that case prunes 1 file instead of 2 with the same rows: the untyped [5, 7] is not used by the Nullable key condition there, while has([5, 7]::Array(Int64), p) and p IN (5, 7) still prune 2. 26.9's MergeTree partition pruning does not use the untyped has on a Nullable key either. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The only failure here is A one-commit fix (test only, a fast-forward of Checked with this PR's release build: the test passes (100 of 100 runs). |
Original pull-request #130192
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