NoahKusaba opened a new issue, #150:
URL: https://github.com/apache/datafusion-iceberg/issues/150

   ### Is your feature request related to a problem or challenge?
   
   Both table providers return `TableProviderFilterPushDown::Inexact` for every 
filter (`catalog_table_provider.rs` and `static_table_provider.rs`). DataFusion 
therefore keeps a `FilterExec` above the scan that checks every row again, even 
though iceberg-rust's `ArrowReader` already filters rows with the pushed 
predicate.
   
   This was first filed against the old integration as apache/iceberg-rust#2363.
   
   ### Describe the solution you'd like
   
   Return `Exact` for a filter when all of the following hold:
   
   1. It converts to `Converted::Exact` (not `Implied`).
   2. iceberg-rust evaluates it per row with the same result as DataFusion for 
every value, including nulls, NaN and -0.0.
   3. iceberg-rust applies it to every row the scan returns, whatever the 
planning mode, deletes or reader settings.
   
   ### Additional context
   
   Not ready to start. Things to settle first:
   
   - Today DataFusion's second filter removes any rows iceberg-rust's row 
filter wrongly keeps. With `Exact`, any mismatch between iceberg-rust's row 
filter and DataFusion becomes a wrong result. Examples: 
apache/iceberg-rust#3355 (`<` on a column missing from the file keeps every 
row) and apache/iceberg-rust#3353 (NaN). So this should follow #101 and the 
row-dropping iceberg-rust fixes, and come with the differential test.
   - #144 wants to turn iceberg-rust's per-row filter off where it costs more 
than it saves (apache/iceberg-rust#3613). Reporting `Exact` requires it to stay 
on, so these need to be decided together.
   
   Part of the predicate pushdown epic.
   


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