Alessandro Molina created ARROW-16616:
-----------------------------------------

             Summary: [Python] Allow lazy evaluation of filters in Dataset and 
add Datset.filter method
                 Key: ARROW-16616
                 URL: https://issues.apache.org/jira/browse/ARROW-16616
             Project: Apache Arrow
          Issue Type: Sub-task
          Components: Python
            Reporter: Alessandro Molina
             Fix For: 9.0.0


To keep the {{Dataset}} api compatible with the {{Table}} one in terms of 
analytics capabilities, we should add a {{Dataset.filter}} method. The initial 
POC was based on {{_table_filter}} but that required materialising all the 
{{Dataset}} content after filtering as it returned an {{{}InMemoryDataset{}}}. 

Given that {{Scanner}} can filter a dataset without actually materialising the 
data until a final step happens, it would be good to have {{Dataset.filter}} 
return some form of lazy dataset when the filter is only stored aside and the 
Scanner is created when data is actually retrieved.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to