Skip to content

Backport #130158 to 26.10: Fix Iceberg manifest-list pruning skipping NULL partitions for ifNull/coalesce filters - #133023

Merged
clickhouse-gh[bot] merged 3 commits into
26.10from
backport/26.10/130158
Nov 22, 2026
Merged

clickhouse-gh[bot] merged 3 commits into
26.10from
backport/26.10/130158

Conversation

@robot-clickhouse-ci-1

@robot-clickhouse-ci-1 robot-clickhouse-ci-1 commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Original pull-request #130158
Cherry-pick pull-request #132975

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

Version info

  • Merged into: 26.10.11.3

… NULL partitions for `ifNull`/`coalesce` filters
@robot-clickhouse-ci-1 robot-clickhouse-ci-1 added the pr-backport Changes, backported to release branch. Do not use manually - automated use only! label Nov 19, 2026
@clickhouse-gh

clickhouse-gh Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [15aacad]

Summary: ✅

@groeneai

Copy link
Copy Markdown
Collaborator

The only failing test here is 05573_iceberg_manifest_list_pruning_null_partition_ifnull: it sets iceberg_insert_single_manifest_for_all_partitions, which exists only from 26.11, so every run on 26.10 fails with Code: 552 Unrecognized option. Without that setting a 26.10 INSERT writes one manifest per partition, the NULL partition's manifest has no bounds and is never skipped, and the test prints the same output with and without the fix. Commit f176df0 on top of this PR's head removes the test. On 26.10 the bug stays covered by test_manifest_list_partition_pruning_null_partition_values (a Spark-written manifest holding NULL and non-NULL values), which passed in this PR's CI.

26.10 needs this PR: #132976 brought the regression there. Measured with clickhouse local and default settings on a table where one manifest holds 5 and NULL (expected [2]):

26.10 @ 36b3c7b this PR @ ade0d55
ifNull(b, 0) IN (0) [] [2]
coalesce(b, 0) IN (0, 1) [] [2]

No 26.10 release has it yet (v26.10.7.24 predates #132976), so the next one ships it unless this PR merges first.

Could someone with push access fast-forward this PR's branch to that commit (groeneai:fix-26.10-backport-130158-test, no force needed):

git fetch https://github.com/groeneai/ClickHouse fix-26.10-backport-130158-test
git push https://github.com/ClickHouse/ClickHouse FETCH_HEAD:backport/26.10/130158

alexey-milovidov and others added 2 commits November 22, 2026 14:56
…om the 26.10 backport

The test sets `iceberg_insert_single_manifest_for_all_partitions`, which does not exist
in 26.10, so it always fails there with `Unrecognized option`. Without that setting an
`INSERT` writes one manifest per partition, so the test cannot produce a manifest holding
both NULL and non-NULL partition values. The fix stays covered in 26.10 by the integration
test `test_manifest_list_partition_pruning_null_partition_values`.

#133023

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Confirmed: iceberg_insert_single_manifest_for_all_partitions is not present in the 26.10 sources, so 05573_iceberg_manifest_list_pruning_null_partition_ifnull cannot pass there. Merged the current 26.10 into the branch and removed the test in 15aacad (same content as the proposed f176df0). The fix remains covered on 26.10 by test_manifest_list_partition_pruning_null_partition_values.

@clickhouse-gh
clickhouse-gh Bot merged commit 1116b90 into 26.10 Nov 22, 2026
52 of 54 checks passed
@clickhouse-gh
clickhouse-gh Bot deleted the backport/26.10/130158 branch November 22, 2026 16:52
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!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants