NoahKusaba opened a new issue, #149: URL: https://github.com/apache/datafusion-iceberg/issues/149
### Is your feature request related to a problem or challenge? When filter pushdown goes wrong, matching rows silently disappear: the query succeeds, but files or row groups that hold matching rows are skipped. Fixed and open bugs of this kind: - In this repo: #36 (casts), #40 (`LIKE` escapes), #44 (negating a weakened `AND`), #101 (NaN). - In iceberg-rust: apache/iceberg-rust#3482 (promoted columns), apache/iceberg-rust#3626 (Unicode prefixes on truncate partitions), apache/iceberg-rust#3617 (`TIMESTAMP(MILLIS)`), apache/iceberg-rust#3536 (truncated string bounds). Each was found by hand. The unit tests check which predicate a filter converts to, not whether the scan returns the right rows. #101 found its bug by comparing an Iceberg table with a `MemTable` copy of it. ### Describe the solution you'd like A test that generates filters and, for each one, compares the rows an Iceberg table returns with the rows a `MemTable` copy of the same data returns. A difference is a bug in the conversion or in iceberg-rust. - **Filters:** comparisons in both operand orders, `IN`/`NOT IN`, `IS [NOT] NULL`, `LIKE`, `isnan`, casts, nested `AND`/`OR`/`NOT`, and boolean columns. - **Data:** several data files per table, so file pruning matters, and several row groups per file. Include nulls, NaN, -0.0, ±infinity, non-ASCII strings, and values at type boundaries. - **Tables:** unpartitioned, and partitioned by identity, bucket, truncate and a time transform. Include a column promoted `int`→`long` after some files were written. - **Reproducible:** a fixed seed, and a failure prints the filter and the table layout. For #117 I compared the old and new conversions this way on about 40,000 generated filters, but only checked that the predicates matched. Comparing result rows would also catch iceberg-rust bugs. Known iceberg-rust bugs will fail some cases. Those can be listed as expected failures, each with a link to its issue, and removed when the iceberg-rust pin moves past the fix. ### 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]
