MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / window_frame_unit_ast_to_expr

Function window_frame_unit_ast_to_expr

src/sql/src/plan/query.rs:6015–6023  ·  view source on GitHub ↗
(
    unit: &WindowFrameUnits,
)

Source from the content-addressed store, hash-verified

6013}
6014
6015fn window_frame_unit_ast_to_expr(
6016 unit: &WindowFrameUnits,
6017) -> Result<mz_expr::WindowFrameUnits, PlanError> {
6018 match unit {
6019 WindowFrameUnits::Rows => Ok(mz_expr::WindowFrameUnits::Rows),
6020 WindowFrameUnits::Range => Ok(mz_expr::WindowFrameUnits::Range),
6021 WindowFrameUnits::Groups => bail_unsupported!("GROUPS in window frames"),
6022 }
6023}
6024
6025fn window_frame_bound_ast_to_expr(bound: &WindowFrameBound) -> mz_expr::WindowFrameBound {
6026 match bound {

Callers 1

plan_window_frameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected