Class OrderByScope

java.lang.Object
org.apache.calcite.sql.validate.DelegatingScope
org.apache.calcite.sql.validate.OrderByScope
All Implemented Interfaces:
SqlValidatorScope

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

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

SELECT empno AS x
FROM emp
ORDER BY x

is valid.