NoahKusaba opened a new issue, #147: URL: https://github.com/apache/datafusion-iceberg/issues/147
### Is your feature request related to a problem or challenge? Filters on a field inside a struct column, such as `WHERE s['a'] = 1`, are never pushed down. `column()` in `crates/datafusion/src/read/predicate.rs` only accepts a bare `Expr::Column`. DataFusion represents the field access as a `get_field` function call, so the conversion gives up. The result is correct, but Iceberg can't use the field's bounds to skip files. ### Describe the solution you'd like Accept `get_field` calls whose base is a column and whose field names are literals, and convert them to an Iceberg `Reference` to the nested field. This is blocked upstream: iceberg-rust's `ArrowReader` rejects row filters on nested leaf columns (apache/iceberg-rust#2432, fix in apache/iceberg-rust#2906). Pushing these filters down before that fix lands would fail the scan. Related: #104, where `IS NULL` on a struct column (not a field inside it) fails the scan. ### Additional context 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]
