shamim8888 / asterixdb

Automatically exported from code.google.com/p/asterixdb
0 stars 0 forks source link

Would like NoSQL query extensions #818

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This is a feature request - long overdue - for some simple AQL language 
extensions so we are more SQL-friendly.  Let this feature set be known as the 
"NoSQL" (Nested Opposite of SQL) extensions.

1. Please make FROM a synonym for FOR, SELECT a synonym for RETURN, and WITH a 
synonym for LET (if possible).  No semantic changes here - just some keyword 
synonyms.

2. If possible, please relax the requirement for variables in queries to start 
with a $ as their first character.  Hopefully this won't cause grammar problems 
- if it does, nevermind.

Error handling needs to be done well so users don't get wierd error messages, 
e.g., complaining about a problem in a FOR clause if they used SELECT instead.  
(It could complain about a problem in a FOR or SELECT clause instead.)  The 
parsing error messages should be fine - just need to make sure the semantic 
error handling is right.

Original issue reported on code.google.com by dtab...@gmail.com on 4 Nov 2014 at 3:26

GoogleCodeExporter commented 9 years ago

Original comment by buyingyi@gmail.com on 18 Nov 2014 at 6:33

GoogleCodeExporter commented 9 years ago
>>2. If possible, please relax the requirement for variables in queries to 
start with a $ as their first character.  >>Hopefully this won't cause grammar 
problems - if it does, nevermind.

It is not possible to make that change because '-' is allowed to be part of an 
identifier (e.g., a function name).  So the lexier cannot tell 'm-1' is 'm - 1' 
or a function name.

Original comment by buyingyi@gmail.com on 9 Jan 2015 at 6:08