Skip to content

Backport #130192 to 26.10: Keep the NULL partition in Delta Lake partition pruning when the filter's set holds NULL - #130721

Merged
clickhouse-gh[bot] merged 2 commits into
26.10from
backport/26.10/130192
Nov 12, 2026
Merged

clickhouse-gh[bot] merged 2 commits into
26.10from
backport/26.10/130192

Conversation

@robot-ch-test-poll3

Copy link
Copy Markdown
Contributor

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

…rtition pruning when the filter's set holds `NULL`
@robot-ch-test-poll3 robot-ch-test-poll3 added pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-bugfix Pull request with bugfix, not backported by default labels Nov 11, 2026
@clickhouse-gh

clickhouse-gh Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [d13a484]

Summary: ✅

On 26.10 `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.10. The case tests another bug, so this
backport's test does not keep it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@groeneai

Copy link
Copy Markdown
Collaborator

The only failure here is the case ifNull(p, 0) IN (0) of 05576_delta_lake_partition_pruning_null_in_set. It returns no rows instead of [2] on 26.10 with and without this change, and a MergeTree table partitioned by the same Nullable column returns the same wrong rows on 26.10, so the case tests another bug. The other 15 cases pass here, and 7 of them fail on 26.10.2.103, so the fix is needed on 26.10.

A one-commit fix that drops that case (test only, a fast-forward of backport/26.10/130192) is on my fork. I cannot push to this branch; someone with write access can apply it with:

git fetch https://github.com/groeneai/ClickHouse fix-backport-26.10-130192 && git push origin FETCH_HEAD:backport/26.10/130192

Checked with this PR's release build: the test passes (100 of 100 runs).

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Applied the fix from @groeneai as a fast-forward: d13a484437ad drops the ifNull(p, 0) IN (0) case of 05576_delta_lake_partition_pruning_null_in_set. CI showed that case was the only mismatch, and it returned [] with and without this backport. The other cases still cover the backported fix.

@clickhouse-gh
clickhouse-gh Bot merged commit 1bc10e8 into 26.10 Nov 12, 2026
50 of 51 checks passed
@clickhouse-gh
clickhouse-gh Bot deleted the backport/26.10/130192 branch November 12, 2026 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-bugfix Pull request with bugfix, not backported by default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants