Fokko commented on PR #945: URL: https://github.com/apache/iceberg-rust/pull/945#issuecomment-2639926317
Hey @omerhadari Thanks for working on this. Unfortunately, I'm afraid that this is a pretty complex task. When we do like `to_date(ts)` in SQL, that maps to an Iceberg partition transform `day(ts)`. What we do in Java, we convert the `to_date(ts)` into [an UnboundTransform](https://github.com/apache/iceberg/blob/main/api/src/main/java/org/apache/iceberg/expressions/UnboundTransform.java). This transform will be bound to the schema at some point. When you do: `to_date(ts) >= 'date' 2021-01-01` the evaluator sees that it is both a date, and it can compare it directly against the partition values. -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org