CHENXCHEN commented on a change in pull request #35734:
URL: https://github.com/apache/spark/pull/35734#discussion_r821288770
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/PartitioningAwareFileIndex.scala
##########
@@ -122,7 +122,16 @@ abstract class PartitioningAwareFileIndex(
// Directory does not exist, or has no children files
Nil
}
- PartitionDirectory(values, files)
+ // Check leaf files since they might be symlink targets
+ if (files.isEmpty) {
+ val status: Seq[FileStatus] = leafFiles.get(path) match {
Review comment:
At the partition table, we have the same behavior, there is also
symbolic in the root directory of the partition
--
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]