Skip to content

Commit

Permalink
fix: Don't panic in invalid agg_groups (pola-rs#17762)
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 authored and atigbadr committed Jul 23, 2024
1 parent a1d519c commit ebcbf39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/polars-expr/src/planner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ fn create_physical_expr_inner(
I::Std(_, ddof) => GBM::Std(*ddof),
I::Var(_, ddof) => GBM::Var(*ddof),
I::AggGroups(_) => {
panic!("agg groups expression only supported in aggregation context")
polars_bail!(InvalidOperation: "agg groups expression only supported in aggregation context")
},
};

Expand Down

0 comments on commit ebcbf39

Please sign in to comment.