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.
parent, 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, findChild, findQualifyingTableName, getChild, getChild, getChildren, resolve, resolveColumnaddColumnNames, fullyQualify, getOperandScope, getOrderList, getParent, getTableNamespace, getValidator, lookupWindow, nullifyType, validateExprpublic SqlNode getNode()
SqlValidatorScopepublic SqlMonotonicity getMonotonicity(SqlNode expr)
SqlValidatorScopegetMonotonicity in interface SqlValidatorScopegetMonotonicity in class DelegatingScopeCopyright © 2012–2015 The Apache Software Foundation. All rights reserved.