Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -815,6 +815,13 @@ public void testTimestampWithTimeZoneOptimization()
.isFullyPushedDown()
.returnsEmptyResult();

assertThat(query("SELECT * FROM " + tableName + " WHERE year(part) IS DISTINCT FROM 2006"))
.isNotFullyPushedDown(FilterNode.class);

assertThat(query("SELECT * FROM " + tableName + " WHERE year(part) IS NOT DISTINCT FROM 2006"))
.isFullyPushedDown()
.returnsEmptyResult();

assertUpdate("DROP TABLE " + tableName);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3321,6 +3321,10 @@ else if (format == AVRO) {
// year()
assertThat(query("SELECT * FROM test_year_transform_timestamptz WHERE year(d) = 2015"))
.isFullyPushedDown();
assertThat(query("SELECT * FROM test_year_transform_timestamptz WHERE year(d) IS DISTINCT FROM 2015"))
.isNotFullyPushedDown(FilterNode.class);
assertThat(query("SELECT * FROM test_year_transform_timestamptz WHERE year(d) IS NOT DISTINCT FROM 2015"))
.isFullyPushedDown();

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