the-other-tim-brown commented on code in PR #13208:
URL: https://github.com/apache/hudi/pull/13208#discussion_r2056349958


##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/table/action/compact/HoodieCompactor.java:
##########
@@ -145,7 +145,7 @@ public HoodieData<WriteStatus> compact(
     if (useFileGroupReaderBasedCompaction) {
       ReaderContextFactory<T> readerContextFactory = 
context.getReaderContextFactory(metaClient);
       return context.parallelize(operations).map(
-              operation -> compact(compactionHandler, config, operation, 
compactionInstantTime, readerContextFactory.getContext()))
+              operation -> compact(compactionHandler, config, operation, 
compactionInstantTime, 
readerContextFactory.getContext(metaClient.getTableConfig())))

Review Comment:
   Updated to use this approach



##########
hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/client/common/SparkReaderContextFactory.java:
##########
@@ -107,7 +108,8 @@ public HoodieReaderContext<InternalRow> getContext() {
           sparkParquetReader,
           JavaConverters.asScalaBufferConverter(filters).asScala().toSeq(),
           JavaConverters.asScalaBufferConverter(filters).asScala().toSeq(),
-          new 
HadoopStorageConfiguration(configurationBroadcast.getValue().value()));
+          new 
HadoopStorageConfiguration(configurationBroadcast.getValue().value()),
+          tableConfig);

Review Comment:
   updated



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