pub fn window_function_not_allowed_err(
window: &Expr,
clause: &str,
span: Option<Span>,
help: impl Into<String>,
) -> DataFusionErrorExpand description
The planning error for window, a window function call that appeared in
clause where it is not allowed (see check_no_window_functions).
The message is Window function calls are not allowed in {clause}: '{window}'. The error carries a Diagnostic with the same message,
pointing at span, and with help.