| 6023 | } |
| 6024 | |
| 6025 | fn window_frame_bound_ast_to_expr(bound: &WindowFrameBound) -> mz_expr::WindowFrameBound { |
| 6026 | match bound { |
| 6027 | WindowFrameBound::CurrentRow => mz_expr::WindowFrameBound::CurrentRow, |
| 6028 | WindowFrameBound::Preceding(None) => mz_expr::WindowFrameBound::UnboundedPreceding, |
| 6029 | WindowFrameBound::Preceding(Some(offset)) => { |
| 6030 | mz_expr::WindowFrameBound::OffsetPreceding(*offset) |
| 6031 | } |
| 6032 | WindowFrameBound::Following(None) => mz_expr::WindowFrameBound::UnboundedFollowing, |
| 6033 | WindowFrameBound::Following(Some(offset)) => { |
| 6034 | mz_expr::WindowFrameBound::OffsetFollowing(*offset) |
| 6035 | } |
| 6036 | } |
| 6037 | } |
| 6038 | |
| 6039 | pub fn scalar_type_from_sql( |
| 6040 | scx: &StatementContext, |