Skip to content

Commit

Permalink
fix: Incorrect flag check on is_elementwise (#20646)
Browse files Browse the repository at this point in the history
  • Loading branch information
orlp authored Jan 9, 2025
1 parent aca9c80 commit 2e0b3a3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/polars-plan/src/plans/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,8 @@ impl FunctionOptions {
matches!(
self.collect_groups,
ApplyOptions::ElementWise | ApplyOptions::ApplyList
) && !self
.flags
.contains(FunctionFlags::CHANGES_LENGTH | FunctionFlags::RETURNS_SCALAR)
) && !self.flags.contains(FunctionFlags::CHANGES_LENGTH)
&& !self.flags.contains(FunctionFlags::RETURNS_SCALAR)
}
}

Expand Down

0 comments on commit 2e0b3a3

Please sign in to comment.