Skip to content

Commit 3688408

Browse files
committed
Improve error report
1 parent 8b2997e commit 3688408

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/expr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ impl PyExpr {
594594
),
595595
_ => Err(
596596
DataFusionError::ExecutionError(datafusion::error::DataFusionError::Plan(
597-
"Using `over` requires an aggregate function.".to_string(),
597+
format!("Using {} with `over` is not allowed. Must use an aggregate or window function.", self.expr.variant_name()),
598598
))
599599
.into(),
600600
),

0 commit comments

Comments
 (0)