xy720 opened a new pull request, #62914:
URL: https://github.com/apache/doris/pull/62914
### What problem does this PR solve?
Avoid restore non-light schema change table in cloud mode. Because non-light
schema change table may have different schema with same schema version(which is
always 0), which will cause very bad problem to metadata in cloud mode.
For example:
There is a table with 'light_schema change' = 'false', its tablet schema is
Tablet a1's schema in Partition A before schema change
```
schema version 0
col1 uid=0
col2 uid=1
col3 uid=2
col4 uid=3
__delete_sign_column__ uid=4
```
Now we add column to this table, then:
Tablet a1's schema in Partition A after schema change
```
schema version 0
col1 uid=0
col2 uid=1
col3 uid=2
col4 uid=3
__delete_sign_column__ uid=4
col5 uid=5
```
Now we add partition B to this table, then
Tablet a2's schema in Partition B is:
```
schema version 0
col1 uid=0
col2 uid=1
col3 uid=2
col4 uid=3
col5 uid=4
__delete_sign_column__ uid=5
```
Then we will have two tablet schema with same index id and same schema
version 0 in this table.
This should not happen in cloud mode.
### 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)
- [x] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
- [x] Previous test can cover this change.
- [ ] No code files have been changed.
- [ ] Other reason <!-- Add your reason? -->
- Behavior changed:
- [x] No.
- [ ] Yes. <!-- Explain the behavior change -->
- Does this need documentation?
- [x] 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]