Skip to content

Commit

Permalink
this is doomed
Browse files Browse the repository at this point in the history
  • Loading branch information
nameexhaustion committed Sep 30, 2024
1 parent 23cda38 commit 8d1c954
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions py-polars/tests/unit/expr/test_exprs.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,11 @@ def test_filter_all() -> None:
q = df.lazy().select((pl.all().reverse()).filter(~pl.col("p")))
assert r'FILTER col("p").not()' in q.explain()

q = df.lazy().select(
pl.sum_horizontal(pl.all().cast(pl.String)).filter(pl.col("p"))
)
print(q.explain())

assert_frame_equal(
q.collect(),
pl.DataFrame({"a": [5, 2], "b": ["t", "q"], "p": False}),
Expand Down

0 comments on commit 8d1c954

Please sign in to comment.