iffyio commented on code in PR #2404:
URL:
https://github.com/apache/datafusion-sqlparser-rs/pull/2404#discussion_r3577004066
##########
src/parser/mod.rs:
##########
@@ -18870,6 +18870,14 @@ impl<'a> Parser<'a> {
let duplicate_treatment = self.parse_duplicate_treatment()?;
let args = self.parse_comma_separated(Parser::parse_function_args)?;
+ // GoogleSQL inline aggregate filter: `AGG(expr WHERE cond [ORDER BY
..])`.
+ // Precedes ORDER BY / LIMIT / HAVING; equivalent to `AGG(expr) FILTER
(WHERE cond)`.
+ if dialect_of!(self is GenericDialect | BigQueryDialect)
+ && self.parse_keyword(Keyword::WHERE)
Review Comment:
can we always have this syntax be accepted by the parser?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]