Gabriel39 opened a new pull request, #67465:
URL: https://github.com/apache/doris/pull/67465

   ### What problem does this PR solve?
   
   Issue Number: None
   
   Related PR: apache/iceberg#13301
   
   Problem Summary:
   
   Iceberg 1.10 plans manifest filters against current partition specs. A 
time-travel predicate using a column that was later renamed, dropped, or 
replaced by a same-named field can therefore fail to bind or bind to the wrong 
field ID.
   
   This change validates pruning predicates against both the selected scan 
schema and the current table schema. It skips only predicates whose names no 
longer resolve to the same field IDs, leaving the original Doris conjunct for 
execution filtering while preserving safe Iceberg metadata pruning.
   
   ### Release note
   
   Fix Iceberg time-travel queries that filter on columns renamed or dropped 
after the selected snapshot.
   
   ### Check List (For Author)
   
   - Test
       - [x] Unit Test
   
   - Behavior changed:
       - [x] Yes. Unsafe metadata predicate pushdown is skipped for evolved 
historical columns so the query can be evaluated correctly by Doris.
   
   - Does this need documentation?
       - [x] No.
   
   ### Check List (For Reviewer who merge this PR)
   
   - [ ] Confirm the release note
   - [ ] Confirm test cases
   - [ ] Confirm document
   - [ ] Add branch pick label
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to