Skip to content

Commit 3e94877

Browse files
authored
Support group by cube/rollup etc in BigQuery (#1720)
1 parent 322209a commit 3e94877

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/dialect/bigquery.rs

+5
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ impl Dialect for BigQueryDialect {
115115
true
116116
}
117117

118+
// See <https://cloud.google.com/bigquery/docs/reference/standard-sql/query-syntax#group_by_clause>
119+
fn supports_group_by_expr(&self) -> bool {
120+
true
121+
}
122+
118123
fn is_column_alias(&self, kw: &Keyword, _parser: &mut Parser) -> bool {
119124
!RESERVED_FOR_COLUMN_ALIAS.contains(kw)
120125
}

0 commit comments

Comments
 (0)