Skip to content

Commit

Permalink
test: Use proper join type in test (pola-rs#16994)
Browse files Browse the repository at this point in the history
ritchie46 authored Jun 16, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 29ac28c commit 1a47c46
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion py-polars/tests/unit/operations/test_cross_join.py
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@ def test_cross_join_predicate_pushdown_block_16956() -> None:
).cast(pl.Datetime("ms", "Europe/Amsterdam"))

assert (
lf.join(lf, on="start_datetime", how="full")
lf.join(lf, on="start_datetime", how="cross")
.filter(
pl.col.end_datetime_right.is_between(
pl.col.start_datetime, pl.col.start_datetime.dt.offset_by("132h")
@@ -32,13 +32,15 @@ def test_cross_join_predicate_pushdown_block_16956() -> None:
.select("start_datetime", "end_datetime_right")
).collect(predicate_pushdown=True).to_dict(as_series=False) == {
"start_datetime": [
datetime(2024, 6, 11, 8, 0, tzinfo=ZoneInfo(key="Europe/Amsterdam")),
datetime(2024, 6, 11, 8, 0, tzinfo=ZoneInfo(key="Europe/Amsterdam")),
datetime(2024, 6, 12, 8, 0, tzinfo=ZoneInfo(key="Europe/Amsterdam")),
datetime(2024, 6, 19, 8, 0, tzinfo=ZoneInfo(key="Europe/Amsterdam")),
],
"end_datetime_right": [
datetime(2024, 6, 11, 16, 0, tzinfo=ZoneInfo(key="Europe/Amsterdam")),
datetime(2024, 6, 12, 16, 0, tzinfo=ZoneInfo(key="Europe/Amsterdam")),
datetime(2024, 6, 12, 16, 0, tzinfo=ZoneInfo(key="Europe/Amsterdam")),
datetime(2024, 6, 19, 16, 0, tzinfo=ZoneInfo(key="Europe/Amsterdam")),
],
}

0 comments on commit 1a47c46

Please sign in to comment.