No, Pavel, by no means, NO.
While N1Ql is finally something relatively well defined, and MUCH better then the alternatives,
in terms of expressive power, we go back to 1993.
N1QL is 99% a copy of OQL designed by Sophie Cluet in 1993 for object-oriented databases, which had
nested objects and arrays, and
After you got used to program in XQuery, going back to N1QL is going back to the cave age.
I personally wonât, and I would rather go did cowâs dung (time to review the classics
http://youtu.be/b2F-DItXtZs :-)
Here are a couple of things (random things that come to my mind in 3 secondsâŠ..):
1. Compositionality. Itâs 2015 , not 1977, for Godâs sake.
2. Casts, explicit and implicit casts. Absolutely necessary for processing data of unknown structure.
3. If-then-elses. Absolutely necessary for processing data of unknown structure.
4. try-catch. Absolutely necessary for processing data of unknown structure.
5. Object and array constructors with dynamically computed content. It's 2015, not 1977 for Godâs sake.
5. Functions and especially recursive functions. Absolutely necessary for processing data of unknown structure.
6. Declarative updates. No comment.
7. Full text. Again, it 2015, not 1977 for Godâs sake.
=========
N1Ql is a cute little thing that brings us back in 1993âŠ..:(
depressed.
Go back digging cowâs dung (or fashion in my case..) while people are still so ignorant in terms of data processing âŠâŠ
Wake me up when itâs done.
Dana
Post by Pavel VelikhovN1QL seems to have all the features to support a JSONiq front-end. Seems like a simple translation, except for the group-by clause.
I guess if people like 4-valued logic, breaking up constructors into group by and select clauses - let them have it :)
Post by daniela florescuAndy,
The story is more complicated here.
The professor at Irvine Univ. in charge of the students team who designed AsterixDB, Mike Carey, is
today the Chief Architect of CouchDB, who ships the N1QL that I just sent yesterday.
Mike Carey knows exactly XQuery, given that he was in charge of my XQuery processor at BEA Systems after I left.
So itâs definitely not by lack of knowledge that he went BACKWARDS and N1QL is even more primitive then SQL 92
(just added some primitive forms of path expressions to it..)
Itâs probably market pressureâŠ.
IT HAS TO LOOK LIKE SQL, AND IT HAS TO USE THE THREE MAGIC KEYWORDS âselectâ âfromâ AND âwhereâ.
Other then that, who cares that from a data processing perspective, we go backwards where we were in 1994 !???
(and nested select-from-where in the from clause are considered âdisruptiveâ ..huh..)
Depressing.
Are users so ignorant and they prefer a vanilla syntax that they know over significant expressive power ?
I wonder.
Dana
Post by Andy BunceHi,
Not tried it myself but, AsterixDB [1] may be of interest to XQuery users.
The heart of AQL[2] is the FLWOR (for-let-where-orderby-return) expression. The roots of this expression were borrowed from the expression of the same name in XQuery.
and
but XQuery was co-designed by a diverse band of experienced language designers (SQL, functional programming,and XML experts)
and we wanted to avoid revisiting many of the same issues [3]
Regards
/Andy
[1] https://asterixdb.ics.uci.edu/ <https://asterixdb.ics.uci.edu/>
[2] https://asterixdb.ics.uci.edu/documentation/aql/manual.html <https://asterixdb.ics.uci.edu/documentation/aql/manual.html>
[3] http://www.vldb.org/pvldb/vol7/p1905-alsubaiee.pdf <http://www.vldb.org/pvldb/vol7/p1905-alsubaiee.pdf>
_______________________________________________
http://x-query.com/mailman/listinfo/talk <http://x-query.com/mailman/listinfo/talk>
_______________________________________________
http://x-query.com/mailman/listinfo/talk
С ÑважеМОеЌ,
Ðавел ÐелОÑ
Пв