zhengchenyu commented on code in PR #32679:
URL: https://github.com/apache/spark/pull/32679#discussion_r2446942836
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/InMemoryFileIndex.scala:
##########
@@ -94,10 +97,23 @@ class InMemoryFileIndex(
val files = listLeafFiles(rootPaths)
cachedLeafFiles =
new mutable.LinkedHashMap[Path, FileStatus]() ++= files.map(f =>
f.getPath -> f)
- cachedLeafDirToChildrenFiles = files.toArray.groupBy(_.getPath.getParent)
+ cachedLeafDirToChildrenFiles =
+ if (readPartitionWithSubdirectoryEnabled) {
+ files.toArray.groupBy(file =>
getRootPathsLeafDir(file.getPath.getParent))
Review Comment:
This will result in the inability to infer partitions for non catatlog
table. Specifically, `"SPARK-20236: dynamic partition overwrite without catalog
table"` will fail!
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]