puchengy commented on issue #4997:
URL: https://github.com/apache/iceberg/issues/4997#issuecomment-1150635141
@kbendick I found out the issue and can provide reproducible queries. The
difference is, in my case, the partition column is of `string` type.
```
spark-sql> create table tbl_test_predicate_3 (id bigint, dt string) using
iceberg partitioned by (dt);
spark-sql> explain select * from tbl_test_predicate_3 where dt between
date_add('2022-06-06', -1) AND '2022-06-06';
plan
== Physical Plan ==
*(1) Project [id#103L, dt#104]
+- *(1) Filter (((cast(dt#104 as date) >= 2022-06-05) AND isnotnull(dt#104))
AND (dt#104 <= 2022-06-06))
+- BatchScan[id#103L, dt#104] spark_catalog.pyang.tbl_test_predicate_3
[filters=dt IS NOT NULL, dt <= '2022-06-06'] RuntimeFilters: []
```
--
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]