airborne12 commented on code in PR #71137:
URL: https://github.com/apache/doris/pull/71137#discussion_r4750334502


##########
fe/fe-core/src/main/java/org/apache/doris/alter/SchemaChangeHandler.java:
##########
@@ -2395,12 +2412,18 @@ public int getAsInt() {
                 throw new 
DdlException(PropertyAnalyzer.ROW_TTL_SEQUENCE_COLUMN_CONFLICT);
             }
 
+            // Resolve how each ADD INDEX runs before any clause below touches 
table metadata.
+            Map<CreateIndexOp, AddIndexPath> addIndexPaths = 
resolveAddIndexPaths(alterOps, olapTable,

Review Comment:
   Confirmed; the resolver lives in #71130, so it is fixed there in 
b81386c5f2a: an ADD INDEX that IF NOT EXISTS turns into a no-op (its name 
already exists on the table) is now skipped when the build paths are resolved, 
so a repeated `CREATE INDEX IF NOT EXISTS ... BUILD DEFERRED` stays a no-op 
after `enable_light_index_change` is turned off. 
`testCreateIndexIfNotExistsWithBuildModeStaysNoOp` failed before the change and 
passes now. This PR itself is on hold.
   



-- 
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