| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
… SETS ((a, b), (a, c))`
| <K_GROUP> <K_BY> | ||
| ( LOOKAHEAD(2) ( | ||
| "(" ")" { groupBy.withUsingBrackets(true); } | ||
| ( |
There was a problem hiding this comment.
Could you more compress this production? There are three nearly identical copies of this inserted block.
Sorry, something went wrong.
| + " Sometable\n" | ||
| + "GROUP BY C1, C2, C3 GROUPING SETS ((C1, C2), (C1, C2, C3), ())"; | ||
|
|
||
| statement = CCJSqlParserUtil.parse(sql); |
There was a problem hiding this comment.
This hole parsing process is done using assertSqlCanBeParsedAndDeparsed. So you could skip it.
Sorry, something went wrong.
|
I still do not get the difference to our current grouping sets variant. Could you explain more specific what you want to achieve? |
Sorry, something went wrong.
|
JsqlParser could not parse SELECT a, b, SUM( c ) FROM tab1 GROUP BY a, b GROUPING SETS ( (a, b), a, b, ( ) ), it's a legal Hive statement. It's an equivalent of Presto's SELECT a, b, SUM( c ) FROM tab1 GROUP BY GROUPING SETS ( (a, b), a, b, ( ) ). |
Sorry, something went wrong.
|
Could you change the test method, like I requested? |
Sorry, something went wrong.
The test method is changed now. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Hive dialect requires all columns appear in GROUPING SETS clause to be in GROUP BY clause.