rahil-c commented on code in PR #13591:
URL: https://github.com/apache/hudi/pull/13591#discussion_r2232021255


##########
hudi-spark-datasource/hudi-spark-common/src/test/java/org/apache/hudi/testutils/LogFileColStatsTestUtil.java:
##########
@@ -45,8 +46,13 @@ public static Option<Row> 
getLogFileColumnRangeMetadata(String filePath, HoodieT
                                                           int maxBufferSize) 
throws IOException {
     if (writerSchemaOpt.isPresent()) {
       String partitionPath = 
FSUtils.getRelativePartitionPath(datasetMetaClient.getBasePath(), new 
StoragePath(filePath).getParent());
+      // Create metadata config from table properties
+      HoodieMetadataConfig metadataConfig = HoodieMetadataConfig.newBuilder()
+          .fromProperties(datasetMetaClient.getTableConfig().getProps())
+          .build();
       List<HoodieColumnRangeMetadata<Comparable>> columnRangeMetadataList =
-          HoodieTableMetadataUtil.getLogFileColumnRangeMetadata(filePath, 
partitionPath, datasetMetaClient, columnsToIndex, writerSchemaOpt, 
maxBufferSize);
+          HoodieTableMetadataUtil.getLogFileColumnRangeMetadata(filePath, 
partitionPath, datasetMetaClient, columnsToIndex, writerSchemaOpt,
+                  maxBufferSize, 
metadataConfig.isOptimizedLogBlocksScanEnabled());

Review Comment:
   Will fix this to use write value



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