Skip to content

Conversation

@github-actions
Copy link
Contributor

Cherry-picked from #58033

…titions in Iceberg (#58033)

### What problem does this PR solve?
Problem Summary:
Currently, the dynamic partition pruning feature for Iceberg tables has
the following issues:

1. **Does not consider partition evolution**: When processing partition
values, the code doesn't account for partition evolution scenarios where
different files may use different partition specs (specId). This can
lead to incorrect partition information being passed to BE.

2. **Processes all partition transform types**: The current
implementation processes all partition transform types (identity, day,
bucket, truncate, etc.) and passes partition information to BE for
dynamic partition pruning. However, for non-identity transforms (e.g.,
`day(ts)`, `bucket(16, id)`, `truncate(3, name)`), the partition values
are transformed values, not the original column values, which can cause
incorrect filtering behavior.
@github-actions github-actions bot requested a review from morrySnow as a code owner November 20, 2025 07:59
@Thearas
Copy link
Contributor

Thearas commented Nov 20, 2025

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@Thearas
Copy link
Contributor

Thearas commented Nov 20, 2025

run buildall

@morrySnow morrySnow closed this Nov 25, 2025
@morrySnow morrySnow reopened this Nov 25, 2025
@morrySnow morrySnow merged commit 51f48ed into branch-3.1 Nov 25, 2025
23 checks passed
@morrySnow morrySnow deleted the auto-pick-58033-branch-3.1 branch November 25, 2025 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants