Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
wence- committed Jul 16, 2024
1 parent a8e3c1a commit a3bf229
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions python/cudf_polars/tests/test_hconcat.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,12 @@ def test_hconcat():
ldf2 = ldf.select((pl.col("a") + pl.col("b")).alias("c"))
query = pl.concat([ldf, ldf2], how="horizontal")
assert_gpu_result_equal(query)


def test_hconcat_different_heights():
left = pl.LazyFrame({"a": [1, 2, 3, 4]})

right = pl.LazyFrame({"b": [[1], [2]], "c": ["a", "bcde"]})

q = pl.concat([left, right], how="horizontal")
assert_gpu_result_equal(q)

0 comments on commit a3bf229

Please sign in to comment.