nsivabalan commented on code in PR #12479:
URL: https://github.com/apache/hudi/pull/12479#discussion_r1887507872
##########
hudi-common/src/main/java/org/apache/hudi/metadata/HoodieTableMetadataUtil.java:
##########
@@ -1413,18 +1416,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 fresh table, we may not have any schema to go with. So, lets keep it
simple
--
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]