avantgardnerio opened a new pull request, #5367:
URL: https://github.com/apache/arrow-datafusion/pull/5367

   # Which issue does this PR close?
   
   Closes #5357.
   
   # Rationale for this change
   
   Allow TableProviders with multi-column indexes to fully filter results. 
Presently, if a TableProvider is ordered by `[col_a, col_b]`, and it gets a 
query `where col_a=1 and col_b=2`, then it receives two calls to 
`supports_filter_pushdown()`: one for `col_a` and one for `col_b` and it would 
have to return `exact` for `col_a` and `Unsupported` for `col_b` because it can 
filter them together, and it can filter `col_a` because it's first in the sort 
order, but it cannot filter `col_b` on it's own.
   
   This change would allow the TableProvider to say "Yes, I can filter 
expressions like `col_a = x and col_b  = y`.
   
   # What changes are included in this PR?
   
   Attempt pushing down the full expression before breaking it up.
   
   # Are these changes tested?
   
   yes.
   
   # Are there any user-facing changes?
   
   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]

Reply via email to