danny0405 commented on code in PR #9761: URL: https://github.com/apache/hudi/pull/9761#discussion_r1356025835
########## hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/DefaultSource.scala: ########## @@ -255,40 +255,47 @@ object DefaultSource { Option.empty } - (tableType, queryType, isBootstrappedTable) match { - case (COPY_ON_WRITE, QUERY_TYPE_SNAPSHOT_OPT_VAL, false) | - (COPY_ON_WRITE, QUERY_TYPE_READ_OPTIMIZED_OPT_VAL, false) | - (MERGE_ON_READ, QUERY_TYPE_READ_OPTIMIZED_OPT_VAL, false) => + val isMultipleBaseFileFormatsEnabled = metaClient.getTableConfig.isMultipleBaseFileFormatsEnabled + (tableType, queryType, isBootstrappedTable, isMultipleBaseFileFormatsEnabled) match { + case (COPY_ON_WRITE, QUERY_TYPE_SNAPSHOT_OPT_VAL, false, true) | + (COPY_ON_WRITE, QUERY_TYPE_READ_OPTIMIZED_OPT_VAL, false, true) => + new HoodieMultiFileFormatCOWRelation(sqlContext, metaClient, parameters, userSchema, globPaths) + case (MERGE_ON_READ, QUERY_TYPE_SNAPSHOT_OPT_VAL, false, true) | Review Comment: Can we handle the `isMultipleBaseFileFormatsEnabled` serarately? -- 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-unsubscr...@hudi.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org