avantgardnerio commented on PR #5362:
URL: 
https://github.com/apache/arrow-datafusion/pull/5362#issuecomment-1440980257

   > it can try pushing down ones that match the available indexes
   
   Let me provide an example: `select * from person where f_name='Brent' and 
l_name='Gardner' and age > 21`. There may be an ordered index on `[l_name, 
f_name]` but nothing else. 
   
   The current planner will test each individual part of the conjunction and 
the Table will have to scan() all `Gardner`s - even though it would have done a 
point lookup on `Brent Gardner` (assuming I'm the only one). 
   
   With the changes in my other PR, it tries to push down the whole clause, 
which the TableProvider will return `Unsupported` since it doesn't have an 
index on all 3.
   
   This PR would give enough information to the planner to let it know it can 
push down 2/3 of the parts of the predicate.


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