public class OverScope extends ListScope
This object is both a SqlValidatorScope only. In the query
SELECT name FROM (
SELECT *
FROM emp OVER (
ORDER BY empno
RANGE BETWEEN 2 PRECEDING AND 2 FOLLOWING))
We need to use the OverScope as a SqlValidatorNamespace
when resolving names used in the window specification.
SqlValidatorScope.EmptyPath, SqlValidatorScope.Path, SqlValidatorScope.Resolve, SqlValidatorScope.Resolved, SqlValidatorScope.ResolvedImpl, SqlValidatorScope.Stepparent, validator| Modifier and Type | Method and Description |
|---|---|
SqlMonotonicity |
getMonotonicity(SqlNode expr)
Returns whether an expression is monotonic in this scope.
|
SqlNode |
getNode()
Returns the root node of this scope.
|
addChild, findAliases, findAllColumnNames, findQualifyingTableName, findQualifyingTableNames, getChildren, isChildNullable, resolve, resolveColumnaddColumnNames, fullyQualify, getOperandScope, getOrderList, getParent, getTableNamespace, getValidator, lookupWindow, nullifyType, resolveTable, validateExprclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisWithinpublic SqlNode getNode()
SqlValidatorScopepublic SqlMonotonicity getMonotonicity(SqlNode expr)
SqlValidatorScopegetMonotonicity in interface SqlValidatorScopegetMonotonicity in class DelegatingScopeCopyright © 2012-2022 Apache Software Foundation. All Rights Reserved.