Skip to content

Commit

Permalink
add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
samster25 committed Dec 21, 2023
1 parent f8b63c3 commit 6ac14f5
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions tests/integration/iceberg/test_partition_pruning.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ def test_daft_iceberg_table_predicate_pushdown_days(local_iceberg_catalog):
lambda x: x == date(2023, 3, 6),
lambda x: x > date(2023, 3, 6),
lambda x: x != date(2023, 3, 6),
lambda x: x == date(2022, 3, 6),
lambda x: date(2023, 3, 6) > x,
lambda x: date(2023, 3, 6) == x,
lambda x: date(2023, 3, 6) < x,
lambda x: date(2023, 3, 6) != x,
],
[
"test_partitioned_by_months",
Expand Down Expand Up @@ -70,7 +73,10 @@ def test_daft_iceberg_table_predicate_pushdown_on_date_column(predicate, table,
lambda x: x == datetime(2023, 3, 6, tzinfo=pytz.utc),
lambda x: x > datetime(2023, 3, 6, tzinfo=pytz.utc),
lambda x: x != datetime(2023, 3, 6, tzinfo=pytz.utc),
lambda x: x == datetime(2022, 3, 6, tzinfo=pytz.utc),
lambda x: datetime(2023, 3, 6, tzinfo=pytz.utc) > x,
lambda x: datetime(2023, 3, 6, tzinfo=pytz.utc) == x,
lambda x: datetime(2023, 3, 6, tzinfo=pytz.utc) < x,
lambda x: datetime(2023, 3, 6, tzinfo=pytz.utc) != x,
],
[
"test_partitioned_by_days",
Expand Down Expand Up @@ -107,6 +113,11 @@ def test_daft_iceberg_table_predicate_pushdown_on_timestamp_column(predicate, ta
lambda x: x > "d",
lambda x: x != "d",
lambda x: x == "z",
lambda x: "d" > x,
lambda x: "d" == x,
lambda x: "d" < x,
lambda x: "d" != x,
lambda x: "z" == x,
],
[
"test_partitioned_by_truncate",
Expand Down Expand Up @@ -140,7 +151,12 @@ def test_daft_iceberg_table_predicate_pushdown_on_letter(predicate, table, limit
lambda x: x == 4,
lambda x: x > 4,
lambda x: x != 4,
lambda x: x == 4,
lambda x: x == 100,
lambda x: 4 > x,
lambda x: 4 == x,
lambda x: 4 < x,
lambda x: 4 != x,
lambda x: 100 == x,
],
[
"test_partitioned_by_bucket",
Expand Down

0 comments on commit 6ac14f5

Please sign in to comment.