Skip to content

validate non-aggregate columns in having and order by during group by validation #9767

@angelamayxie

Description

@angelamayxie

MySQL documentation states

Reject queries for which the select list, HAVING condition, or ORDER BY list refer to nonaggregated columns that are neither named in the GROUP BY clause nor are functionally dependent on (uniquely determined by) GROUP BY columns.

We currently don't check having and order by nodes during group by validation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    analyzerbugSomething isn't workingsqlIssue with SQL

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions