Guy Khazma created SPARK-30475:
----------------------------------

             Summary: File source V2: Push data filters for file listing
                 Key: SPARK-30475
                 URL: https://issues.apache.org/jira/browse/SPARK-30475
             Project: Spark
          Issue Type: Improvement
          Components: SQL
    Affects Versions: 3.0.0
            Reporter: Guy Khazma
             Fix For: 3.0.0


Follow up on [SPARK-30428|https://github.com/apache/spark/pull/27112] which 
added support for partition pruning in File source V2.
We should also pass the {{dataFilters}} to the {{listFiles method.}}

Datasources such as {{csv}} and {{json}} do not implement the 
{{SupportsPushDownFilters}} trait. In order to support data skipping uniformly 
for all file based data sources, one can override the {{listFiles}} method in a 
{{FileIndex}} implementation, which consults external metadata and prunes the 
list of files.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to