qidaye opened a new pull request, #47562: URL: https://github.com/apache/doris/pull/47562
### What problem does this PR solve? Problem Summary: This pull request includes changes to the `TabletSchema` class and the `Compaction` class to add a new method for checking the existence of a column by its unique ID and to use this method during index compaction. The most important changes are summarized below: ### Enhancements to `TabletSchema`: * Added a new method `exist_column_by_uid` to check if a column exists by its unique ID. (`be/src/olap/tablet_schema.h`, `be/src/olap/tablet_schema.cpp`) [[1]](diffhunk://#diff-743340c8464c19dbd6fa96d14fe493aeaea005a3571c6d9016576a5706e433bbR1363-R1366) [[2]](diffhunk://#diff-42bfdbb7f380191848ab3078380ab28d1b93177c189f2a0fffdee0d69da13494R348) ### Improvements to `Compaction`: * Updated the `construct_index_compaction_columns` method to use the new `exist_column_by_uid` method to verify the existence of a column before proceeding with index compaction. This prevents errors when a column is not found. (`be/src/olap/compaction.cpp`) ### 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org