Perseus commented on PR #117:
URL: 
https://github.com/apache/datafusion-iceberg/pull/117#issuecomment-7033943330

   I think it might also be worth considering replacing the `Expr -> 
iceberg::Predicate` converter with a `PhysicalExpr -> iceberg::Predicate` one 
and converting `Expr` -> `PhysicalExpr` during planning. We definitely need the 
physical converter because dynamic filters are only available during execution 
as `Vec<Arc<dyn PhysicalExpr>>`, and having a central place for this logic 
would help avoid drift and inconsistent behaviour.
   
   DF's `ListingTable` already does [this 
conversion](https://github.com/apache/datafusion/blob/d5552342012888b7d1a3ab88d92e3d292fc0cde0/datafusion/catalog-listing/src/helpers.rs#L330-L337)
 when it prunes files by partition value. I'll create an issue to discuss this 
further, because it needs to work well with both eager and lazy file planning.


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