Skip to content

Commit 521f1aa

Browse files
hqbhohofindepi
authored andcommitted
Add test for IS NOT DISTINCT FROM pushdown in DeltaLake
1 parent 4c46ce2 commit 521f1aa

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

plugin/trino-delta-lake/src/test/java/io/trino/plugin/deltalake/TestDeltaLakeConnectorTest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -815,6 +815,13 @@ public void testTimestampWithTimeZoneOptimization()
815815
.isFullyPushedDown()
816816
.returnsEmptyResult();
817817

818+
assertThat(query("SELECT * FROM " + tableName + " WHERE year(part) IS DISTINCT FROM 2006"))
819+
.isNotFullyPushedDown(FilterNode.class);
820+
821+
assertThat(query("SELECT * FROM " + tableName + " WHERE year(part) IS NOT DISTINCT FROM 2006"))
822+
.isFullyPushedDown()
823+
.returnsEmptyResult();
824+
818825
assertUpdate("DROP TABLE " + tableName);
819826
}
820827

0 commit comments

Comments
 (0)