yihua commented on a change in pull request #4789:
URL: https://github.com/apache/hudi/pull/4789#discussion_r814426514
##########
File path:
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/HoodieMergeOnReadRDD.scala
##########
@@ -323,32 +322,60 @@ private object HoodieMergeOnReadRDD {
def scanLog(split: HoodieMergeOnReadFileSplit, logSchema: Schema, config:
Configuration): HoodieMergedLogRecordScanner = {
val fs = FSUtils.getFs(split.tablePath, config)
- val partitionPath: String = if (split.logPaths.isEmpty ||
split.logPaths.get.asJava.isEmpty) {
- null
+ val logFiles = split.logFiles.get
+
+ if (HoodieTableMetadata.isMetadataTable(split.tablePath)) {
Review comment:
I see. That makes sense. Yeah, at some point we should see how to
reduce such bifurcations and make them easier to maintain.
--
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]