Skip to content

Commit

Permalink
Improve error report
Browse files Browse the repository at this point in the history
  • Loading branch information
timsaucer committed Sep 18, 2024
1 parent 8b2997e commit 3688408
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ impl PyExpr {
),
_ => Err(
DataFusionError::ExecutionError(datafusion::error::DataFusionError::Plan(
"Using `over` requires an aggregate function.".to_string(),
format!("Using {} with `over` is not allowed. Must use an aggregate or window function.", self.expr.variant_name()),
))
.into(),
),
Expand Down

0 comments on commit 3688408

Please sign in to comment.