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 cbe59a2d Enable GROUP BY exp for Snowflake dialect (#1683)
cbe59a2d is described below

commit cbe59a2d8b08cf01469f48e8f65bf74bf286f882
Author: Yoav Cohen <59807311+yoavcl...@users.noreply.github.com>
AuthorDate: Sun Jan 26 15:15:36 2025 +0100

    Enable GROUP BY exp for Snowflake dialect (#1683)
---
 src/dialect/snowflake.rs | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/dialect/snowflake.rs b/src/dialect/snowflake.rs
index bd9afb19..eb8ea4de 100644
--- a/src/dialect/snowflake.rs
+++ b/src/dialect/snowflake.rs
@@ -305,6 +305,11 @@ impl Dialect for SnowflakeDialect {
     fn supports_timestamp_versioning(&self) -> bool {
         true
     }
+
+    /// See: <https://docs.snowflake.com/en/sql-reference/constructs/group-by>
+    fn supports_group_by_expr(&self) -> bool {
+        true
+    }
 }
 
 fn parse_file_staging_command(kw: Keyword, parser: &mut Parser) -> 
Result<Statement, ParserError> {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@datafusion.apache.org
For additional commands, e-mail: commits-h...@datafusion.apache.org

Reply via email to