public class GroupByScope extends DelegatingScope
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.
SqlValidatorScope.EmptyPath, SqlValidatorScope.Path, SqlValidatorScope.Resolve, SqlValidatorScope.Resolved, SqlValidatorScope.ResolvedImpl, SqlValidatorScope.Stepparent, validator| Modifier and Type | Method and Description |
|---|---|
SqlNode |
getNode()
Returns the root node of this scope.
|
void |
validateExpr(SqlNode expr)
Performs any scope-specific validation of an expression.
|
addChild, addColumnNames, findAliases, findAllColumnNames, findQualifyingTableName, findQualifyingTableNames, fullyQualify, getMonotonicity, getOperandScope, getOrderList, getParent, getTableNamespace, getValidator, lookupWindow, nullifyType, resolve, resolveColumn, resolveTableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisWithinpublic SqlNode getNode()
SqlValidatorScopepublic void validateExpr(SqlNode expr)
SqlValidatorScopevalidateExpr in interface SqlValidatorScopevalidateExpr in class DelegatingScopeCopyright © 2012-2022 Apache Software Foundation. All Rights Reserved.