Skip to content

Backport #118606 to 26.3: Proper partition pruning with dates - #119251

Closed
robot-clickhouse wants to merge 2 commits into
26.3from
backport/26.3/118606
Closed

robot-clickhouse wants to merge 2 commits into
26.3from
backport/26.3/118606

Conversation

@robot-clickhouse

Copy link
Copy Markdown
Member

Original pull-request #118606
Cherry-pick pull-request #119239

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

@robot-clickhouse robot-clickhouse 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 Sep 10, 2026
@clickhouse-gh

clickhouse-gh Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [a8a643b]

Summary: ⏳

job_name test_name status info comment
Stateless tests (amd_asan, distributed plan, parallel, 2/2) failure
05054_nullable_key_todate_monotonicity FAIL cidb

Master's ManifestFilesPruning.cpp has had this include since 7790f33;
26.3 never did, and the cherry-pick applied around the missing context line.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@Algunenano Algunenano closed this Sep 11, 2026
alexey-milovidov added a commit that referenced this pull request Sep 26, 2026
Resolve the cherry-pick of #119302 against 26.3. The original #118606 was
never backported to 26.3 (its backport #119251 was closed after the revert),
so this is effectively the full backport of the Iceberg partition pruning:

- `ManifestListPruning.cpp` does not exist on 26.3 (there is no manifest
  list pruning there), so its part of the reland, which fixed the pre-1970
  bound bug in `ManifestListPruner`, is dropped.
- `IcebergFieldParseHelpers` stays as on 26.3: the new
  `deserializeDecimalFromBinaryRepr` is only used by the decimal partition
  decoding and `ManifestListPruner`, neither of which exists on 26.3.
- `FunctionsConversion.h`, `ManifestFile.h` (`tuple_index`),
  `ManifestFileIterator.cpp` and `ManifestFilesPruning.cpp` take the 26.3
  adaptation from the earlier backport #119251, with the helpers in
  `ManifestFilesPruning.cpp` updated to the form of the reland.
- The tests come from the reland; `05054` there extracts only the
  `Granules: N/M` part of `EXPLAIN`, which is what failed on #119251.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@maxknv
maxknv deleted the backport/26.3/118606 branch November 13, 2026 13:03
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.

5 participants