yihua commented on code in PR #10304:
URL: https://github.com/apache/hudi/pull/10304#discussion_r1425904302
##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/DefaultSource.scala:
##########
@@ -259,65 +256,43 @@ object DefaultSource {
CDCRelation.getCDCRelation(sqlContext, metaClient, parameters)
}
} else {
- lazy val fileFormatUtils = if ((isMultipleBaseFileFormatsEnabled &&
!isBootstrappedTable)
- || (useNewParquetFileFormat)) {
- val formatUtils = new HoodieSparkFileFormatUtils(sqlContext,
metaClient, parameters, userSchema)
- if (formatUtils.hasSchemaOnRead) Option.empty else Some(formatUtils)
- } else {
- Option.empty
- }
-
- if (isMultipleBaseFileFormatsEnabled) {
- if (isBootstrappedTable) {
- throw new HoodieException(s"Multiple base file formats are not
supported for bootstrapped table")
- }
- resolveMultiFileFormatRelation(tableType, queryType,
fileFormatUtils.get)
Review Comment:
See the changes in other classes.
--
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]