Skip to content

Commit 4c46ce2

Browse files
hqbhohofindepi
authored andcommitted
Add test for IS NOT DISTINCT FROM pushdown in Iceberg
1 parent 434a852 commit 4c46ce2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

plugin/trino-iceberg/src/test/java/io/trino/plugin/iceberg/BaseIcebergConnectorTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3321,6 +3321,10 @@ else if (format == AVRO) {
33213321
// year()
33223322
assertThat(query("SELECT * FROM test_year_transform_timestamptz WHERE year(d) = 2015"))
33233323
.isFullyPushedDown();
3324+
assertThat(query("SELECT * FROM test_year_transform_timestamptz WHERE year(d) IS DISTINCT FROM 2015"))
3325+
.isNotFullyPushedDown(FilterNode.class);
3326+
assertThat(query("SELECT * FROM test_year_transform_timestamptz WHERE year(d) IS NOT DISTINCT FROM 2015"))
3327+
.isFullyPushedDown();
33243328

33253329
// date_trunc
33263330
assertThat(query("SELECT * FROM test_year_transform_timestamptz WHERE date_trunc('year', d) = TIMESTAMP '2015-01-01 00:00:00.000000 UTC'"))

0 commit comments

Comments
 (0)