pub fn analyze_analytic_functions(
stmt: &Statement,
) -> Option<AnalyticWindowAnalysis>Expand description
Analyzes a SQL statement for analytic window functions.
Walks SELECT items looking for functions with OVER clauses that match
LAG, LEAD, FIRST_VALUE, LAST_VALUE, or NTH_VALUE. Returns None if
no analytic functions are found.
§Arguments
stmt- The SQL statement to analyze
§Returns
An AnalyticWindowAnalysis if analytic functions are found, or None.