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.Step| Modifier and Type | Field and Description |
|---|---|
private SqlNodeList |
groupByList |
private SqlSelect |
select |
parent, validator| Constructor and Description |
|---|
GroupByScope(SqlValidatorScope parent,
SqlNodeList groupByList,
SqlSelect select) |
| 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, resolveInNamespace, resolveTableprivate final SqlNodeList groupByList
private final SqlSelect select
GroupByScope(SqlValidatorScope parent, SqlNodeList groupByList, SqlSelect select)
public SqlNode getNode()
SqlValidatorScopepublic void validateExpr(SqlNode expr)
SqlValidatorScopevalidateExpr in interface SqlValidatorScopevalidateExpr in class DelegatingScopeCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.