Skip to content

Commit

Permalink
c
Browse files Browse the repository at this point in the history
  • Loading branch information
nameexhaustion committed Nov 14, 2024
1 parent 678355a commit a5f53e1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions py-polars/tests/unit/operations/test_join.py
Original file line number Diff line number Diff line change
Expand Up @@ -1113,3 +1113,13 @@ def test_join_key_type_coercion_19597() -> None:
left.join(
right, left_on=pl.col("a") * 2, right_on=pl.col("a") * 2
).collect_schema()


def test_array_explode_join_19763() -> None:
q = pl.LazyFrame().select(
pl.lit(pl.Series([[1], [2]], dtype=pl.Array(pl.Int64, 1))).explode().alias("k")
)

q = q.join(pl.LazyFrame({"k": [1, 2]}), on="k")

assert_frame_equal(q.collect().sort("k"), pl.DataFrame({"k": [1, 2]}))

0 comments on commit a5f53e1

Please sign in to comment.