(
&self,
exprs: Vec<Vec<SQLExpr>>,
schema: &DFSchema,
planner_context: &mut PlannerContext,
)
| 23 | |
| 24 | impl<S: ContextProvider> SqlToRel<'_, S> { |
| 25 | pub(super) fn sql_grouping_sets_to_expr( |
| 26 | &self, |
| 27 | exprs: Vec<Vec<SQLExpr>>, |
| 28 | schema: &DFSchema, |
| 29 | planner_context: &mut PlannerContext, |
| 30 | ) -> Result<Expr> { |
| 31 | let args: Result<Vec<Vec<_>>> = exprs |
| 32 | .into_iter() |
| 33 | .map(|v| { |
| 34 | v.into_iter() |
| 35 | .map(|e| self.sql_expr_to_logical_expr(e, schema, planner_context)) |
| 36 | .collect() |
| 37 | }) |
| 38 | .collect(); |
| 39 | Ok(Expr::GroupingSet(GroupingSet::GroupingSets(args?))) |
| 40 | } |
| 41 | |
| 42 | pub(super) fn sql_rollup_to_expr( |
| 43 | &self, |
no test coverage detected