Skip to content

GROUP BY () not supported #1092

Closed
Closed
@michael-2956

Description

@michael-2956

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions