Add NoSQL grammar:
Please make FROM a synonym for FOR, SELECT a synonym for RETURN, and WITH a synonym for LET. No semantic changes here - just some keyword synonyms.
Change-Id: Iffba1c25c611fc420b6e223bcdde75a9244035e4
Reviewed-on: http://fulliautomatix.ics.uci.edu:8443/181
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: Till Westmann <westmann@gmail.com>
diff --git a/asterix-app/src/test/resources/AQLTS/queries-sql-like/5.aql b/asterix-app/src/test/resources/AQLTS/queries-sql-like/5.aql
new file mode 100644
index 0000000..4fe6be0
--- /dev/null
+++ b/asterix-app/src/test/resources/AQLTS/queries-sql-like/5.aql
@@ -0,0 +1,10 @@
+from $event in dataset('Event')
+where $event.name = "The Night of the Ad Eaters, 29th edition"
+with $collocated_events :=
+ from $collocated_event in dataset('Events')
+ where $collocated_event.location.street ~= $event.location.street
+ and $collocated_event.location.city = $event.location.city
+ and $collocated_event.location.state = $event.location.state
+ and $collocated_event.location.zip = $event.location.zip
+ select { "event_name" : $collocated_event.name }
+select { "collocated_evnets" : $collocated_events }