Skip to content

Commit

Permalink
Teiid 8 Parser updating to support 8.5-8.7
Browse files Browse the repository at this point in the history
* commit 'TEIID-2443 adding support for a single rollup grouping expression'
  • Loading branch information
Paul Richardson committed Mar 27, 2014
1 parent 373a4a9 commit f887149
Showing 1 changed file with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3683,12 +3683,25 @@ example={code:sql}GROUP BY col1, col2{code}
GroupBy groupBy(ParseInfo info) #GroupBy :
{
List<Expression> expressions = null;
boolean rollup = false;
}
{
<GROUP> <BY>
expressions = expressionList(info)
(
<ROLLUP><LPAREN>
expressions = expressionList(info)
<RPAREN>
{
requires(versionAtLeast(Version.TEIID_8_5));
rollup = true;
}
|
expressions = expressionList(info)
)

{
jjtThis.setSymbols(expressions);
jjtThis.setRollup(rollup);
return jjtThis;
}
}
Expand Down

0 comments on commit f887149

Please sign in to comment.