viirya commented on a change in pull request #35734:
URL: https://github.com/apache/spark/pull/35734#discussion_r821013673
##########
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:
Are Symlink targets in leaf files? I think leaf files are listed from
table root?
--
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]