mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-09-04 13:10:31 +00:00
Enable grouping sets parsing for GenericDialect (#771)
This commit is contained in:
parent
79d0baad73
commit
f0870fd315
2 changed files with 4 additions and 4 deletions
|
@ -943,7 +943,7 @@ impl<'a> Parser<'a> {
|
|||
/// parse a group by expr. a group by expr can be one of group sets, roll up, cube, or simple
|
||||
/// expr.
|
||||
fn parse_group_by_expr(&mut self) -> Result<Expr, ParserError> {
|
||||
if dialect_of!(self is PostgreSqlDialect) {
|
||||
if dialect_of!(self is PostgreSqlDialect | GenericDialect) {
|
||||
if self.parse_keywords(&[Keyword::GROUPING, Keyword::SETS]) {
|
||||
self.expect_token(&Token::LParen)?;
|
||||
let result = self.parse_comma_separated(|p| p.parse_tuple(false, true))?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue