szehon-ho opened a new pull request, #52628:
URL: https://github.com/apache/spark/pull/52628

   
   
   ### What changes were proposed in this pull request?
   Add new interfaces HasPartitionKeys and KeyedPartitioning to DSV2 to report 
partition values.  These are a superset of HasPartitionKey and 
KeyGroupedPartitioning (which requires the data source to group its 
InputPartition by partition-values and is mainly for SPJ).  Use this in Spark 
for further partition-column filtering.
   
   
   ### Why are the changes needed?
   Currently, Spark converts Catalyst Expression to either Filter or Predicate 
and pushes it to DSV2 via SupportsPushdownFilters and SupportsPushdownV2Filters 
API's.
   
   However, some Spark filters may not convert cleanly.  For example, 
trim(part_col) = 'a'.  There are cases where DSV2 can return the exact 
partition value(s) to spark for its InputPartition, and Spark can use the 
original catalyst expression for filtering.
   
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   
   ### How was this patch tested?
   Unit test
   
   ### Was this patch authored or co-authored using generative AI tooling?
   No
   


-- 
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]

Reply via email to