nsivabalan commented on code in PR #10199:
URL: https://github.com/apache/hudi/pull/10199#discussion_r1408722685


##########
hudi-utilities/src/main/java/org/apache/hudi/utilities/sources/ParquetDFSSource.java:
##########
@@ -52,6 +52,6 @@ public Pair<Option<Dataset<Row>>, String> 
fetchNextBatch(Option<String> lastCkpt
   }
 
   private Dataset<Row> fromFiles(String pathStr) {
-    return sparkSession.read().parquet(pathStr.split(","));
+    return sparkSession.read().option("mergeSchema", 
"true").parquet(pathStr.split(","));

Review Comment:
   Can we add a config property for this and enable based on that. 
   you can introduce a new Config class named ParquetDFSSourceConfig and add a 
config property for MergeSchema. 
   set default to true. 
   
   you can take a look at 
https://github.com/apache/hudi/blob/master/hudi-utilities/src/main/java/org/apache/hudi/utilities/config/DFSPathSelectorConfig.java
 for reference. 



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