Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
3.0.0
-
None
-
None
Description
I was trying to understand how Data Source V2 handling partition pruning, I didn't find the code anywhere which filtering out the unnecessary files in current Data Source V2 implementation. For a File data source, the base class FileScan of Data Source V2 possibly should handle this in "partitions" method. But the current implementation is like the following:
protected def partitions: Seq[FilePartition] = {
val selectedPartitions = fileIndex.listFiles(Seq.empty, Seq.empty)
listFiles passed to empty sequence where no files will be filtered by the partition filter.
Attachments
Issue Links
- duplicates
-
SPARK-30428 File source V2: support partition pruning
- Resolved