Convert GROUP BY clause to SqlExpr list.
(group_by: &GroupByExpr)
| 257 | |
| 258 | /// Convert GROUP BY clause to SqlExpr list. |
| 259 | pub fn convert_group_by(group_by: &GroupByExpr) -> Result<Vec<SqlExpr>> { |
| 260 | match group_by { |
| 261 | GroupByExpr::All(_) => Ok(Vec::new()), |
| 262 | GroupByExpr::Expressions(exprs, _) => exprs.iter().map(convert_expr).collect(), |
| 263 | } |
| 264 | } |
| 265 | |
| 266 | /// Scan the SELECT projection for `GROUPING(col)` calls and return synthetic |
| 267 | /// `AggregateExpr` entries so the executor can compute the per-set bitmask value. |
no test coverage detected