Skip to main content

Module analytic_parser

Module analytic_parser 

Source
Expand description

Analytic window function detection and extraction

Analyzes SQL queries for analytic functions like LAG, LEAD, FIRST_VALUE, LAST_VALUE, and NTH_VALUE with OVER clauses. These are per-row window functions (distinct from GROUP BY aggregate windows like TUMBLE/HOP/SESSION).

Structs§

AnalyticFunctionInfo
Information about a single analytic function call.
AnalyticWindowAnalysis
Result of analyzing analytic functions in a query.
WindowFrameAnalysis
Result of analyzing window frame functions in a query.
WindowFrameInfo
Information about a single window frame function call.

Enums§

AnalyticFunctionType
Types of analytic window functions.
FrameBound
A single bound in a window frame specification.
FrameUnits
Window frame unit type.
WindowFrameFunction
Types of aggregate functions used with window frames.

Functions§

analyze_analytic_functions
Analyzes a SQL statement for analytic window functions.
analyze_window_frames
Analyzes a SQL statement for window frame aggregate functions.