This is an automated email from the ASF dual-hosted git repository.
iffyio pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion-sqlparser-rs.git
The following commit(s) were added to refs/heads/main by this push:
new 3e94877f Support group by cube/rollup etc in BigQuery (#1720)
3e94877f is described below
commit 3e94877f03c5b47659093a2d55c3bc04e042013c
Author: Emil <[email protected]>
AuthorDate: Tue Feb 11 16:22:50 2025 +0100
Support group by cube/rollup etc in BigQuery (#1720)
---
src/dialect/bigquery.rs | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/dialect/bigquery.rs b/src/dialect/bigquery.rs
index bb1a0d5c..5354a645 100644
--- a/src/dialect/bigquery.rs
+++ b/src/dialect/bigquery.rs
@@ -115,6 +115,11 @@ impl Dialect for BigQueryDialect {
true
}
+ // See
<https://cloud.google.com/bigquery/docs/reference/standard-sql/query-syntax#group_by_clause>
+ fn supports_group_by_expr(&self) -> bool {
+ true
+ }
+
fn is_column_alias(&self, kw: &Keyword, _parser: &mut Parser) -> bool {
!RESERVED_FOR_COLUMN_ALIAS.contains(kw)
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]