jonvex commented on code in PR #12310:
URL: https://github.com/apache/hudi/pull/12310#discussion_r1854901462


##########
hudi-common/src/main/java/org/apache/hudi/metadata/HoodieTableMetadataUtil.java:
##########
@@ -1193,20 +1200,20 @@ public static HoodieData<HoodieRecord> 
convertMetadataToColumnStatsRecords(Hoodi
    */
   private static List<String> getColumnsToIndex(boolean 
isColumnStatsIndexEnabled,
                                                 List<String> 
targetColumnsForColumnStatsIndex,
+                                                int maxColumnsToIndex,
                                                 Lazy<Option<Schema>> 
lazyWriterSchemaOpt) {
     checkState(isColumnStatsIndexEnabled);
 
     if (!targetColumnsForColumnStatsIndex.isEmpty()) {
       return targetColumnsForColumnStatsIndex;
+    } else {
+      if (maxColumnsToIndex <= 0) {
+        return Collections.emptyList();

Review Comment:
   yeah



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

Reply via email to