nsivabalan commented on code in PR #12511:
URL: https://github.com/apache/hudi/pull/12511#discussion_r1892337738


##########
hudi-common/src/main/java/org/apache/hudi/metadata/HoodieTableMetadataUtil.java:
##########
@@ -1413,18 +1422,26 @@ private static List<String> 
getColumnsToIndex(HoodieTableConfig tableConfig,
    */
   private static Stream<String> 
getColumnsToIndexWithoutRequiredMetaFields(HoodieMetadataConfig metadataConfig,
                                                                            
Either<List<String>, Lazy<Option<Schema>>> tableSchema,
+                                                                           
boolean freshTable,
                                                                            
Option<HoodieRecordType> recordType) {
     List<String> columnsToIndex = 
metadataConfig.getColumnsEnabledForColumnStatsIndex();
     if (!columnsToIndex.isEmpty()) {
+      if (freshTable) {

Review Comment:
   for a very fresh table, we may not have table schema to validate against. 
So, just honor the columns to index overriden. Subsequent commit will auto 
correct the list of cols to index if need be,



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