You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "yihua (via GitHub)" <gi...@apache.org> on 2024/05/25 15:15:30 UTC

Re: [PR] [HUDI-7797] Use HoodieIOFactory to return pluggable FileFormatUtils implementation [hudi]

yihua commented on code in PR #11302:
URL: https://github.com/apache/hudi/pull/11302#discussion_r1614727283


##########
hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/io/storage/HoodieSparkParquetReader.java:
##########
@@ -69,7 +69,7 @@ public HoodieSparkParquetReader(HoodieStorage storage, StoragePath path) {
     this.storage = storage.newInstance(path, storage.getConf().newInstance());
     // Avoid adding record in list element when convert parquet schema to avro schema
     this.storage.getConf().set(ADD_LIST_ELEMENT_RECORDS, "false");
-    this.parquetUtils = FileFormatUtils.getInstance(HoodieFileFormat.PARQUET);
+    this.parquetUtils = new HoodieSparkIOFactory(storage).getFileFormatUtils(HoodieFileFormat.PARQUET);

Review Comment:
   Yes.  Given this Spark so I hardcoded it.  Fix now. 



-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org