Add 'group by ... keeping ...' as a synonym of 'group by ... with ...'.
Change-Id: I9aa7354092e13d7a95a3ab0ee4b02a468dbf3baf
Reviewed-on: http://fulliautomatix.ics.uci.edu:8443/187
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: Till Westmann <westmann@gmail.com>
diff --git a/asterix-aql/src/main/javacc/AQL.jj b/asterix-aql/src/main/javacc/AQL.jj
index 2cd38c6..ac4f527 100644
--- a/asterix-aql/src/main/javacc/AQL.jj
+++ b/asterix-aql/src/main/javacc/AQL.jj
@@ -2131,7 +2131,7 @@
}
)*
)?
- <WITH> withVar = VariableRef()
+ (<WITH>|<KEEPING>) withVar = VariableRef()
{
if(withVar.getIsNewVar()==true)
throw new ParseException("can't find variable " + withVar.getVar());
@@ -2281,6 +2281,7 @@
| <UNION : "union">
| <WHERE : "where">
| <WITH : "with">
+ | <KEEPING : "keeping">
}
<DEFAULT,IN_DBL_BRACE>