Skip to content

Commit

Permalink
fix 'True' fast-path
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-beedie committed Oct 21, 2023
1 parent 263ca49 commit e5929e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py-polars/polars/lazyframe/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -2653,7 +2653,7 @@ def filter(
boolean_masks = []

# no-op; immediately matches all rows
if predicates == (True,) and not constraints:
if len(predicates) == 1 and predicates[0] is True and not constraints:
return self.clone()

# note: identify masks separately from predicates
Expand Down

0 comments on commit e5929e8

Please sign in to comment.