(
&self,
exprs: Vec<Vec<SQLExpr>>,
schema: &DFSchema,
planner_context: &mut PlannerContext,
)
| 61 | } |
| 62 | |
| 63 | pub(super) fn sql_cube_to_expr( |
| 64 | &self, |
| 65 | exprs: Vec<Vec<SQLExpr>>, |
| 66 | schema: &DFSchema, |
| 67 | planner_context: &mut PlannerContext, |
| 68 | ) -> Result<Expr> { |
| 69 | let args: Result<Vec<_>> = exprs |
| 70 | .into_iter() |
| 71 | .map(|v| { |
| 72 | if v.len() != 1 { |
| 73 | plan_err!("Tuple expressions not are supported for Cube expressions") |
| 74 | } else { |
| 75 | self.sql_expr_to_logical_expr(v[0].clone(), schema, planner_context) |
| 76 | } |
| 77 | }) |
| 78 | .collect(); |
| 79 | Ok(Expr::GroupingSet(GroupingSet::Cube(args?))) |
| 80 | } |
| 81 | } |
no test coverage detected