typhon-project/typhonql

[BUG] OrderBy and GroupBy clauses

Closed this issue · 1 comments

When I take a look at the QL grammar and more specifically at OrderBy and GroupBy clauses, this is what one can find:

syntax OrderBy = orderClause: "order" {VId ","}+ vars;
syntax GroupBy = groupClause: "group" {VId ","}+ vars Having? having;

Both clauses take as input a list of VId... however, it should be an Expr instead.
Example: from User u select u order u.name

I changed the syntax accordingly in anticipation of aggregation features in TyphonQL.