Class GroupByScope

  • All Implemented Interfaces:
    SqlValidatorScope

    public class GroupByScope
    extends DelegatingScope
    Represents the name-resolution context for expressions in an GROUP BY clause.

    In some dialects of SQL, the GROUP BY clause can reference column aliases in the SELECT clause. For example, the query

    SELECT empno AS x
    FROM emp
    GROUP BY x

    is valid.