-
Notifications
You must be signed in to change notification settings - Fork 667
parse grouping sets, rollup, and cube for postgresql #366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Pull Request Test Coverage Report for Build 1563508887
💛 - Coveralls |
2684527 to
6670d50
Compare
|
need to rebase onto #367 |
src/parser.rs
Outdated
| /// 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 self.parse_keywords(&[Keyword::GROUPING, Keyword::SETS]) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I double checked at MySql also supports GROUPING, though it seems it supports WITH ROLLUP rather than ROLLUP, https://dev.mysql.com/doc/refman/8.0/en/group-by-modifiers.html
but seemingly not CUBE https://dev.mysql.com/doc/search/?d=201&p=1&q=cube
I think we should make parsing this part of the syntax conditional on the the postgresql dialect
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done now
6670d50 to
ddf96c7
Compare
ddf96c7 to
b415c8f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @jimexist !
No description provided.