typhon-project / typhonql

Typhon Query Language
Eclipse Public License 2.0
4 stars 1 forks source link

[BUG] OrderBy and GroupBy clauses #71

Closed meuriceloup closed 4 years ago

meuriceloup commented 4 years ago

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

tvdstorm commented 4 years ago

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