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

   bp #48723
   
   ### What problem does this PR solve?
   Problem Summary:
   Supports native reader reading tables after the top-level schema of paimon 
is changed, but does not support tables after the internal schema of struct is 
changed.
   
   change  top-level schema(support):
   ```sql
   --spark sql 
   ALTER TABLE table_name ADD COLUMNS (c1 INT,c2 STRING);
   ALTER TABLE table_name RENAME COLUMN c0 TO c1;
   ALTER TABLE table_name DROP COLUMNS (c1, c2);
   ALTER TABLE table_name ADD COLUMN c INT FIRST;
   ALTER TABLE table_name ADD COLUMN c INT AFTER b;
   ALTER TABLE table_name ALTER COLUMN col_a FIRST;
   ALTER TABLE table_name ALTER COLUMN col_a AFTER col_b;
   ```
   
   change internal schema of struct schema(not support, will support in the 
next PR):
   ```sql
   --spark sql 
   ALTER TABLE table_name ADD COLUMN        v.value.f3 STRING;
   ALTER TABLE table_name RENAME COLUMN v.f1 to f100;
   ALTER TABLE table_name DROP COLUMN      v.value.f3 ;
   ALTER TABLE table_name ALTER COLUMN      v.col_a FIRST;
   ```
   
   ### 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