pub fn find_window_function_in_expression(expr: &Expression) -> Option<String>Expand description
Find the first window function in an expression
Window functions can only appear in SELECT list and ORDER BY clauses. This function finds window functions in expressions where they are not allowed (e.g., WHERE, HAVING, GROUP BY, aggregate function arguments).
Returns the function name if found, None otherwise.