Hello. First of all, thanks for this amazing project!
I've ran into an issue that explicit GROUP BY () is not supported.
For example, when we write:
SELECT SUM (value) from sales,
it is supposed to be the same as:
SELECT SUM (value) from sales group by (),
but the latter is not parseable by the parser. It produces:
ParserError("Expected an expression:, found: )").
I suppose that the issue is that it expects a row expression there, but () is just a special syntax for grouping by nothing.
You technically can specify GROUP BY (), value, which would just group by value, but if only () is present it treats all rows like a single group.
How would you suggest fixing this?
Hello. First of all, thanks for this amazing project!
I've ran into an issue that explicit
GROUP BY ()is not supported.For example, when we write:
SELECT SUM (value) from sales,it is supposed to be the same as:
SELECT SUM (value) from sales group by (),but the latter is not parseable by the parser. It produces:
ParserError("Expected an expression:, found: )").I suppose that the issue is that it expects a row expression there, but () is just a special syntax for grouping by nothing.
You technically can specify
GROUP BY (), value, which would just group byvalue, but if only () is present it treats all rows like a single group.How would you suggest fixing this?