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

   ### What problem does this PR solve?
   
   Issue Number: None
   
   Related PR: #66345
   
   Problem Summary:
   
   `rewrite_data_files` fails with `Iceberg table schema changed after the 
write was bound` on any table whose column has a write default. The rewrite 
binds the cached read schema, which carries no write default, so the default 
comparison always mismatches.
   
   A default materialized at bind is an ordinary written value, so a later 
default change cannot corrupt the write. This PR stops comparing write 
defaults, matching Spark. Name, type, field-id and column-order checks are kept.
   
   ### Release note
   
   Fix `rewrite_data_files` failing on Iceberg tables with column write 
defaults.
   
   ### Check List (For Author)
   
   - Test
       - [x] Regression test
       - [x] 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
   
   - Behavior changed:
       - [ ] No.
       - [x] Yes. A concurrent write-default change no longer makes 
INSERT/UPDATE/MERGE retry; they write the default seen at analysis, as Spark 
does.
   
   - Does this need documentation?
       - [x] No.
       - [ ] Yes.
   
   ### 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