pub fn analyze_window_frames(stmt: &Statement) -> Option<WindowFrameAnalysis>Expand description
Analyzes a SQL statement for window frame aggregate functions.
Walks SELECT items looking for aggregate functions (AVG, SUM, MIN, MAX,
COUNT, FIRST_VALUE, LAST_VALUE) with OVER clauses that contain explicit
ROWS/RANGE frame specifications. Returns None if no such functions
are found.
This is distinct from analyze_analytic_functions() which handles
per-row offset functions (LAG/LEAD). Window frame functions compute
aggregates over a sliding frame of rows.