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

   bp #59984
   Problem Summary:
   This PR addresses three major issues related to reading Iceberg tables:
   
   1. When reading an Iceberg table that contains equality delete files, a 
crash may occur if schema changes have been applied to the affected columns.
   The root cause is that the previous implementation matched columns by column 
name when applying equality deletes. However, Iceberg requires matching columns 
by Iceberg field ID to correctly identify the original column across schema 
evolution.
   This PR updates the equality delete logic to resolve columns using Iceberg 
IDs instead of column names.
   
   2. For Iceberg tables migrated from Hive, legacy data files do not contain 
Iceberg field IDs.
   In this case, columns must be resolved using the table property 
`schema.name-mapping.default.`
   This PR adds support for using the name mapping defined in table properties 
to correctly match columns when reading such data files.
   
   3. Reduce Thrift metadata overhead during table reads. To optimize read 
performance, this PR reduces the amount of Thrift metadata transmitted when 
reading Iceberg tables. `History_schema_info` now includes only the columns 
required for the read, including pruning of nested fields within complex types.
   
   Handle Iceberg data files with missing field IDs.
   Fix equality delete handling for Iceberg tables with schema changes.
   
   ### What problem does this PR solve?
   
   Issue Number: close #xxx
   
   Related PR: #xxx
   
   Problem Summary:
   
   ### Release note
   
   None
   
   ### Check List (For Author)
   
   - Test <!-- At least one of them must be included. -->
       - [ ] Regression test
       - [ ] Unit Test
       - [ ] Manual test (add detailed scripts or steps below)
       - [ ] No need to test or manual test. Explain why:
           - [ ] This is a refactor/code format and no logic has been changed.
           - [ ] Previous test can cover this change.
           - [ ] No code files have been changed.
           - [ ] Other reason <!-- Add your reason?  -->
   
   - Behavior changed:
       - [ ] No.
       - [ ] Yes. <!-- Explain the behavior change -->
   
   - Does this need documentation?
       - [ ] No.
       - [ ] Yes. <!-- Add document PR link here. eg: 
https://github.com/apache/doris-website/pull/1214 -->
   
   ### Check List (For Reviewer who merge this PR)
   
   - [ ] Confirm the release note
   - [ ] Confirm test cases
   - [ ] Confirm document
   - [ ] Add branch pick label <!-- Add branch pick label that this PR should 
merge into -->
   
   


-- 
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