public class AggregatingSelectScope extends DelegatingScope implements AggregatingScope
The same set of identifiers are in scope, but it won't allow access to identifiers or expressions which are not group-expressions.
| Modifier and Type | Class and Description |
|---|---|
static class |
AggregatingSelectScope.Resolved
Information about an aggregating scope that can only be determined
after validation has occurred.
|
SqlValidatorScope.EmptyPath, SqlValidatorScope.Path, SqlValidatorScope.Resolve, SqlValidatorScope.ResolvedImpl, SqlValidatorScope.Step| Modifier and Type | Field and Description |
|---|---|
Supplier<AggregatingSelectScope.Resolved> |
resolved |
parent, validator| Modifier and Type | Method and Description |
|---|---|
boolean |
checkAggregateExpr(SqlNode expr,
boolean deep)
Checks whether an expression is constant within the GROUP BY clause.
|
SqlNode |
getNode()
Returns the root node of this scope.
|
SqlValidatorScope |
getOperandScope(SqlCall call)
Returns the scope within which operands to a call are to be validated.
|
RelDataType |
nullifyType(SqlNode node,
RelDataType type)
Converts the type of an expression to nullable, if the context
warrants it.
|
void |
validateExpr(SqlNode expr)
Performs any scope-specific validation of an expression.
|
addChild, addColumnNames, findAliases, findAllColumnNames, findQualifyingTableName, findQualifyingTableNames, fullyQualify, getMonotonicity, getOrderList, getParent, getTableNamespace, getValidator, lookupWindow, resolve, resolveColumn, resolveTableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddChild, findAliases, findAllColumnNames, findQualifyingTableName, findQualifyingTableNames, fullyQualify, getMonotonicity, getOrderList, getTableNamespace, getValidator, isWithin, lookupWindow, resolve, resolveColumn, resolveTablepublic final Supplier<AggregatingSelectScope.Resolved> resolved
public SqlNode getNode()
SqlValidatorScopegetNode in interface SqlValidatorScopepublic RelDataType nullifyType(SqlNode node, RelDataType type)
SqlValidatorScopenullifyType in interface SqlValidatorScopenullifyType in class DelegatingScopepublic SqlValidatorScope getOperandScope(SqlCall call)
SqlValidatorScopegetOperandScope in interface SqlValidatorScopegetOperandScope in class DelegatingScopecall - Callpublic boolean checkAggregateExpr(SqlNode expr, boolean deep)
AggregatingScopecheckAggregateExpr in interface AggregatingScopepublic void validateExpr(SqlNode expr)
SqlValidatorScopevalidateExpr in interface SqlValidatorScopevalidateExpr in class DelegatingScopeCopyright © 2012-2022 Apache Software Foundation. All Rights Reserved.