yihua commented on code in PR #14061:
URL: https://github.com/apache/hudi/pull/14061#discussion_r2582727365
##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/DefaultSource.scala:
##########
@@ -295,8 +295,11 @@ object DefaultSource {
}
lazy val enableFileGroupReader = SparkConfigUtils
- .getStringWithAltKeys(parameters,
HoodieReaderConfig.FILE_GROUP_READER_ENABLED).toBoolean &&
- !metaClient.isMetadataTable
+ .getStringWithAltKeys(parameters,
HoodieReaderConfig.FILE_GROUP_READER_ENABLED).toBoolean
+ if (!enableFileGroupReader) {
+ throw new IllegalArgumentException("File group reader is disabled")
+ }
Review Comment:
Should the `enableFileGroupReader` be removed if it is not allowed to use
non-fg reader code path on the read side?
--
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]