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


##########
fe/fe-core/src/main/java/org/apache/doris/alter/SchemaChangeHandler.java:
##########
@@ -3275,6 +3275,20 @@ private boolean processAddIndex(CreateIndexOp 
createIndexOp, OlapTable olapTable
             
AnnIndexPropertiesChecker.checkProperties(indexDef.getProperties());
         }
 
+        // Resolve DEFAULT to its effective format using the system config 
before checking.
+        TInvertedIndexFileStorageFormat effectiveFormat = 
olapTable.getInvertedIndexFileStorageFormat();
+        if (effectiveFormat == TInvertedIndexFileStorageFormat.DEFAULT
+                && 
Config.inverted_index_storage_format.equalsIgnoreCase("V1")) {
+            effectiveFormat = TInvertedIndexFileStorageFormat.V1;

Review Comment:
   Why?



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