[bugfix](index) Fix build index limitations (#24358)
1. skip existed index on column with different id on build index 2. allow build index for CANCELED or FINISHED state
This commit is contained in:
@ -2898,8 +2898,8 @@ public class SchemaChangeHandler extends AlterHandler {
|
||||
&& indexChangeJob.getTableId() == tableId
|
||||
&& indexChangeJob.getPartitionName().equals(partitionName)
|
||||
&& indexChangeJob.hasSameAlterInvertedIndex(isDrop, alterIndexes)
|
||||
&& indexChangeJob.getJobState() != IndexChangeJob.JobState.CANCELLED) {
|
||||
// if JobState is CANCELLED, also allow user to create job again
|
||||
&& !indexChangeJob.isDone()) {
|
||||
// if JobState is done (CANCELLED or FINISHED), also allow user to create job again
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user