We introduce the missing reduce keyword for operations like min/max/count aggregations, as well as first() and check. However, we do not require the reduce keyword for function return statements:
match
...
reduce count($x);
in a function would be;
define
fun test(...) -> long:
match ...
return count($x);
We also allow trailing commas throughout the grammar, though they are ignored, to allow the user to generate queries more simply:
match
$x, isa person, has name $n, ... ; #equivalent to the user-friendly syntax: $x isa person, has name, ...;
Usage and product changes
We introduce the missing
reduce
keyword for operations likemin/max/count
aggregations, as well asfirst()
andcheck
. However, we do not require thereduce
keyword for function return statements:in a function would be;
We also allow trailing commas throughout the grammar, though they are ignored, to allow the user to generate queries more simply:
Implementation