nsivabalan commented on code in PR #12105:
URL: https://github.com/apache/hudi/pull/12105#discussion_r1817966886
##########
hudi-common/src/main/java/org/apache/hudi/metadata/HoodieTableMetadataUtil.java:
##########
@@ -970,18 +967,14 @@ public static HoodieData<HoodieRecord>
convertFilesToColumnStatsRecords(HoodieEn
final List<Tuple3<String, String, Boolean>> partitionFileFlagTupleList =
fetchPartitionFileInfoTriplets(partitionToDeletedFiles,
partitionToAppendedFiles);
// Create records MDT
+ Option<Schema> writerSchemaOpt = fetchStatsForLogFiles ?
tryResolveSchemaForTable(dataMetaClient) : Option.empty();
Review Comment:
For one writer operation we fetch it once and use it for any no of log files
for which col stats is required to be computed, hence went w/ table schema
resolver.
here is the follow up https://issues.apache.org/jira/browse/HUDI-8445
--
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]