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


##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/DefaultSource.scala:
##########
@@ -299,14 +299,22 @@ object DefaultSource {
               new IncrementalRelation(sqlContext, parameters, userSchema, 
metaClient)
             }
 
-          case (MERGE_ON_READ, QUERY_TYPE_SNAPSHOT_OPT_VAL, _) =>
+          case (MERGE_ON_READ, QUERY_TYPE_SNAPSHOT_OPT_VAL, false) =>
             if (useNewParquetFileFormat) {
               new HoodieMergeOnReadSnapshotHadoopFsRelationFactory(
-                sqlContext, metaClient, parameters, userSchema, 
isBootstrappedTable).build()
+                sqlContext, metaClient, parameters, userSchema, isBootstrap = 
false).build()
             } else {
               new MergeOnReadSnapshotRelation(sqlContext, parameters, 
metaClient, globPaths, userSchema)
             }
 
+          case (MERGE_ON_READ, QUERY_TYPE_SNAPSHOT_OPT_VAL, true) =>

Review Comment:
   Do we need a new test case on this given CI passes without catching this 
before?



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