| Package | Description |
|---|---|
| org.apache.calcite.sql |
Provides a SQL parser and object model.
|
| org.apache.calcite.sql.advise |
Provides hints and corrections for editing SQL statements.
|
| org.apache.calcite.sql.fun |
Defines the set of standard SQL row-level functions and
operators.
|
| org.apache.calcite.sql.type |
SQL type system.
|
| org.apache.calcite.sql.validate |
SQL validation.
|
| org.apache.calcite.sql2rel |
Translates a SQL parse tree to relational expression.
|
| Modifier and Type | Field and Description |
|---|---|
private SqlValidatorScope |
SqlCallBinding.scope |
| Modifier and Type | Method and Description |
|---|---|
SqlValidatorScope |
SqlCallBinding.getScope()
Returns the scope of the call.
|
| Modifier and Type | Method and Description |
|---|---|
protected List<RelDataType> |
SqlOperator.constructArgTypeList(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call,
List<SqlNode> args,
boolean convertRowArgToColumnList) |
RelDataType |
SqlOperator.deriveType(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call)
Derives the type of a call to this operator.
|
RelDataType |
SqlBinaryOperator.deriveType(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call) |
RelDataType |
SqlInternalOperator.deriveType(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call) |
RelDataType |
SqlFilterOperator.deriveType(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call) |
RelDataType |
SqlOverOperator.deriveType(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call) |
RelDataType |
SqlFunction.deriveType(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call) |
RelDataType |
SqlAsOperator.deriveType(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call) |
RelDataType |
SqlJdbcFunctionCall.deriveType(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call) |
private RelDataType |
SqlFunction.deriveType(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call,
boolean convertRowArgToColumnList) |
void |
SqlCall.findValidOptions(SqlValidator validator,
SqlValidatorScope scope,
SqlParserPos pos,
Collection<SqlMoniker> hintList) |
void |
SqlNode.findValidOptions(SqlValidator validator,
SqlValidatorScope scope,
SqlParserPos pos,
Collection<SqlMoniker> hintList)
Lists all the valid alternatives for this node if the parse position of
the node matches that of pos.
|
protected String |
SqlCall.getCallSignature(SqlValidator validator,
SqlValidatorScope scope)
Returns a string describing the actual argument types of a call, e.g.
|
SqlMonotonicity |
SqlOperator.getMonotonicity(SqlCall call,
SqlValidatorScope scope)
Deprecated.
|
SqlMonotonicity |
SqlIdentifier.getMonotonicity(SqlValidatorScope scope) |
SqlMonotonicity |
SqlDynamicParam.getMonotonicity(SqlValidatorScope scope) |
SqlMonotonicity |
SqlCall.getMonotonicity(SqlValidatorScope scope) |
SqlMonotonicity |
SqlLiteral.getMonotonicity(SqlValidatorScope scope) |
SqlMonotonicity |
SqlNode.getMonotonicity(SqlValidatorScope scope)
Returns whether expression is always ascending, descending or constant.
|
SqlMonotonicity |
SqlDataTypeSpec.getMonotonicity(SqlValidatorScope scope) |
protected void |
SqlOperator.preValidateCall(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call)
Receives notification that validation of a call to this operator is
beginning.
|
void |
SqlSelect.validate(SqlValidator validator,
SqlValidatorScope scope) |
void |
SqlIdentifier.validate(SqlValidator validator,
SqlValidatorScope scope) |
void |
SqlInsert.validate(SqlValidator validator,
SqlValidatorScope scope) |
void |
SqlWindow.validate(SqlValidator validator,
SqlValidatorScope scope) |
void |
SqlUpdate.validate(SqlValidator validator,
SqlValidatorScope scope) |
void |
SqlDynamicParam.validate(SqlValidator validator,
SqlValidatorScope scope) |
void |
SqlCall.validate(SqlValidator validator,
SqlValidatorScope scope)
Validates this call.
|
void |
SqlMerge.validate(SqlValidator validator,
SqlValidatorScope scope) |
void |
SqlLiteral.validate(SqlValidator validator,
SqlValidatorScope scope) |
void |
SqlSetOption.validate(SqlValidator validator,
SqlValidatorScope scope) |
void |
SqlIntervalQualifier.validate(SqlValidator validator,
SqlValidatorScope scope) |
void |
SqlMatchRecognize.validate(SqlValidator validator,
SqlValidatorScope scope) |
void |
SqlWith.validate(SqlValidator validator,
SqlValidatorScope scope) |
abstract void |
SqlNode.validate(SqlValidator validator,
SqlValidatorScope scope)
Validates this node.
|
void |
SqlNodeList.validate(SqlValidator validator,
SqlValidatorScope scope) |
void |
SqlDelete.validate(SqlValidator validator,
SqlValidatorScope scope) |
void |
SqlDataTypeSpec.validate(SqlValidator validator,
SqlValidatorScope scope) |
void |
SqlOperator.validateCall(SqlCall call,
SqlValidator validator,
SqlValidatorScope scope,
SqlValidatorScope operandScope)
Validates a call to this operator.
|
void |
SqlAggFunction.validateCall(SqlCall call,
SqlValidator validator,
SqlValidatorScope scope,
SqlValidatorScope operandScope) |
void |
SqlMatchRecognize.SqlMatchRecognizeOperator.validateCall(SqlCall call,
SqlValidator validator,
SqlValidatorScope scope,
SqlValidatorScope operandScope) |
void |
SqlFilterOperator.validateCall(SqlCall call,
SqlValidator validator,
SqlValidatorScope scope,
SqlValidatorScope operandScope) |
void |
SqlOverOperator.validateCall(SqlCall call,
SqlValidator validator,
SqlValidatorScope scope,
SqlValidatorScope operandScope) |
void |
SqlFunction.validateCall(SqlCall call,
SqlValidator validator,
SqlValidatorScope scope,
SqlValidatorScope operandScope) |
void |
SqlAsOperator.validateCall(SqlCall call,
SqlValidator validator,
SqlValidatorScope scope,
SqlValidatorScope operandScope) |
void |
SqlSetOperator.validateCall(SqlCall call,
SqlValidator validator,
SqlValidatorScope scope,
SqlValidatorScope operandScope) |
void |
SqlWith.SqlWithOperator.validateCall(SqlCall call,
SqlValidator validator,
SqlValidatorScope scope,
SqlValidatorScope operandScope) |
void |
SqlIdentifier.validateExpr(SqlValidator validator,
SqlValidatorScope scope) |
void |
SqlNode.validateExpr(SqlValidator validator,
SqlValidatorScope scope)
Validates this node in an expression context.
|
void |
SqlNodeList.validateExpr(SqlValidator validator,
SqlValidatorScope scope) |
private void |
SqlWindow.validateFrameBoundary(SqlNode bound,
boolean isRows,
SqlTypeFamily orderTypeFam,
SqlValidator validator,
SqlValidatorScope scope) |
RelDataType |
SqlOperator.validateOperands(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call)
Validates the operands of a call, inferring the return type in the
process.
|
| Constructor and Description |
|---|
SqlCallBinding(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call)
Creates a call binding.
|
| Modifier and Type | Method and Description |
|---|---|
RelDataType |
SqlAdvisorValidator.deriveType(SqlValidatorScope scope,
SqlNode operand)
Calls the parent class method and mask Farrago exception thrown.
|
SqlNode |
SqlAdvisorValidator.expand(SqlNode expr,
SqlValidatorScope scope) |
private void |
SqlAdvisorValidator.registerId(SqlIdentifier id,
SqlValidatorScope scope) |
protected void |
SqlAdvisorValidator.validateFrom(SqlNode node,
RelDataType targetRowType,
SqlValidatorScope scope) |
void |
SqlAdvisorValidator.validateIdentifier(SqlIdentifier id,
SqlValidatorScope scope)
Registers the identifier and its scope into a map keyed by ParserPosition.
|
protected void |
SqlAdvisorValidator.validateOver(SqlCall call,
SqlValidatorScope scope) |
| Modifier and Type | Method and Description |
|---|---|
static List<RelDataType> |
SqlTypeUtil.deriveAndCollectTypes(SqlValidator validator,
SqlValidatorScope scope,
List<SqlNode> operands)
Iterates over all operands, derives their types, and collects them into
a list.
|
static RelDataType |
SqlTypeUtil.makeNullableIfOperandsAre(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call,
RelDataType type)
Recreates a given RelDataType with nullability iff any of the operands
of a call are nullable.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
AggregatingScope
An extension to the
SqlValidatorScope interface which indicates that
the scope is aggregating. |
| Modifier and Type | Class and Description |
|---|---|
class |
AggregatingSelectScope
Scope for resolving identifiers within a SELECT statement that has a
GROUP BY clause.
|
(package private) class |
CatalogScope
Implementation of
SqlValidatorScope that can see all schemas in the
current catalog. |
(package private) class |
CollectScope
The name-resolution context for expression inside a multiset call.
|
class |
DelegatingScope
A scope which delegates all requests to its parent scope.
|
(package private) class |
EmptyScope
Deviant implementation of
SqlValidatorScope for the top of the scope
stack. |
class |
GroupByScope
Represents the name-resolution context for expressions in an GROUP BY clause.
|
class |
JoinScope
The name-resolution context for expression inside a JOIN clause.
|
class |
ListScope
Abstract base for a scope which is defined by a list of child namespaces and
which inherits from a parent scope.
|
class |
MatchRecognizeScope
Scope for expressions in a
MATCH_RECOGNIZE clause. |
class |
OrderByScope
Represents the name-resolution context for expressions in an ORDER BY clause.
|
class |
OverScope
The name-resolution scope of a OVER clause.
|
class |
ParameterScope
A scope which contains nothing besides a few parameters.
|
class |
SelectScope
The name-resolution scope of a SELECT clause.
|
(package private) class |
TableScope
The name-resolution scope of a LATERAL TABLE clause.
|
(package private) class |
WithScope
Scope providing the objects that are available after evaluating an item
in a WITH clause.
|
| Modifier and Type | Field and Description |
|---|---|
protected SqlValidatorScope |
DelegatingScope.parent
Parent scope.
|
private SqlValidatorScope |
IdentifierNamespace.parentScope |
private SqlValidatorScope |
TableConstructorNamespace.scope |
SqlValidatorScope |
SqlValidatorScope.Resolve.scope |
private SqlValidatorScope |
UnnestNamespace.scope |
private SqlValidatorScope |
ProcedureNamespace.scope |
private SqlValidatorScope |
CollectNamespace.scope |
private SqlValidatorScope |
SqlValidatorImpl.DeriveTypeVisitor.scope |
SqlValidatorScope |
SqlValidatorImpl.IdInfo.scope |
private SqlValidatorScope |
JoinScope.usingScope |
private SqlValidatorScope |
CollectScope.usingScope |
private SqlValidatorScope |
SelectScope.windowParent
Scope to use to resolve windows
|
| Modifier and Type | Field and Description |
|---|---|
private Map<SqlSelect,SqlValidatorScope> |
SqlValidatorImpl.cursorScopes
Maps a
SqlSelect node that is the argument to a CURSOR
constructor to the scope of the result of that select node |
private Map<SqlSelect,SqlValidatorScope> |
SqlValidatorImpl.groupByScopes
Maps a
SqlSelect node to the scope used by its GROUP BY clause. |
private Map<SqlSelect,SqlValidatorScope> |
SqlValidatorImpl.orderScopes
Maps a
SqlSelect node to the scope used by its ORDER BY clause. |
private Deque<SqlValidatorScope> |
AggChecker.scopes |
private Deque<SqlValidatorScope> |
SqlScopedShuttle.scopes |
protected Map<SqlNode,SqlValidatorScope> |
SqlValidatorImpl.scopes
Maps
query node objects to the SqlValidatorScope
scope created from them. |
private Map<SqlSelect,SqlValidatorScope> |
SqlValidatorImpl.selectScopes
Maps a
SqlSelect node to the scope used by its SELECT and HAVING
clauses. |
private Map<SqlSelect,SqlValidatorScope> |
SqlValidatorImpl.whereScopes
Maps a
SqlSelect node to the scope used by its WHERE and HAVING
clauses. |
| Modifier and Type | Method and Description |
|---|---|
SqlValidatorScope |
SqlValidatorImpl.getCursorScope(SqlSelect select) |
SqlValidatorScope |
SqlValidatorImpl.getEmptyScope() |
SqlValidatorScope |
SqlValidator.getFromScope(SqlSelect select)
Returns a scope containing the objects visible from the FROM clause of a
query.
|
SqlValidatorScope |
SqlValidatorImpl.getFromScope(SqlSelect select) |
SqlValidatorScope |
SqlValidator.getGroupScope(SqlSelect select)
Returns a scope containing the objects visible from the GROUP BY clause
of a query.
|
SqlValidatorScope |
SqlValidatorImpl.getGroupScope(SqlSelect select) |
SqlValidatorScope |
SqlValidator.getHavingScope(SqlSelect select)
Returns a scope containing the objects visible from the HAVING clause of
a query.
|
SqlValidatorScope |
SqlValidatorImpl.getHavingScope(SqlSelect select) |
SqlValidatorScope |
SqlValidator.getJoinScope(SqlNode node)
Returns a scope containing the objects visible from the ON and USING
sections of a JOIN clause.
|
SqlValidatorScope |
SqlValidatorImpl.getJoinScope(SqlNode node) |
SqlValidatorScope |
SqlValidator.getMatchRecognizeScope(SqlMatchRecognize node)
Returns a scope match recognize clause.
|
SqlValidatorScope |
SqlValidatorImpl.getMatchRecognizeScope(SqlMatchRecognize node) |
SqlValidatorScope |
SqlValidatorScope.getOperandScope(SqlCall call)
Returns the scope within which operands to a call are to be validated.
|
SqlValidatorScope |
ParameterScope.getOperandScope(SqlCall call) |
SqlValidatorScope |
AggregatingSelectScope.getOperandScope(SqlCall call) |
SqlValidatorScope |
EmptyScope.getOperandScope(SqlCall call) |
SqlValidatorScope |
DelegatingScope.getOperandScope(SqlCall call) |
SqlValidatorScope |
SqlValidator.getOrderScope(SqlSelect select)
Returns the scope that expressions in the SELECT and HAVING clause of
this query should use.
|
SqlValidatorScope |
SqlValidatorImpl.getOrderScope(SqlSelect select) |
SqlValidatorScope |
SqlValidator.getOverScope(SqlNode node)
Returns the scope of an OVER or VALUES node.
|
SqlValidatorScope |
SqlValidatorImpl.getOverScope(SqlNode node) |
SqlValidatorScope |
DelegatingScope.getParent()
Returns the parent scope of this
DelegatingScope. |
SqlValidatorScope |
TableConstructorNamespace.getScope()
Returns the scope.
|
protected SqlValidatorScope |
SqlScopedShuttle.getScope()
Returns the current scope.
|
SqlValidatorScope |
CollectNamespace.getScope() |
SqlValidatorScope |
SqlValidator.getSelectScope(SqlSelect select)
Returns the appropriate scope for validating a particular clause of a
SELECT statement.
|
SqlValidatorScope |
SqlValidatorImpl.getSelectScope(SqlSelect select) |
SqlValidatorScope |
JoinScope.getUsingScope()
Returns the scope which is used for resolving USING clause.
|
SqlValidatorScope |
SqlValidator.getWhereScope(SqlSelect select)
Returns the scope that expressions in the WHERE and GROUP BY clause of
this query should use.
|
SqlValidatorScope |
SqlValidatorImpl.getWhereScope(SqlSelect select) |
SqlValidatorScope |
SqlValidator.getWithScope(SqlNode withItem) |
SqlValidatorScope |
SqlValidatorImpl.getWithScope(SqlNode withItem) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
SqlValidatorImpl.addToSelectList(List<SqlNode> list,
Set<String> aliases,
List<Map.Entry<String,RelDataType>> fieldList,
SqlNode exp,
SqlValidatorScope scope,
boolean includeSystemVars)
Adds an expression to a select list, ensuring that its alias does not
clash with any existing expressions on the list.
|
private static ImmutableBitSet |
SqlValidatorUtil.analyzeGroupExpr(SqlValidatorScope scope,
SqlValidatorUtil.GroupAnalyzer groupAnalyzer,
SqlNode groupExpr)
Analyzes a component of a tuple in a GROUPING SETS clause.
|
static void |
SqlValidatorUtil.analyzeGroupItem(SqlValidatorScope scope,
SqlValidatorUtil.GroupAnalyzer groupAnalyzer,
com.google.common.collect.ImmutableList.Builder<com.google.common.collect.ImmutableList<ImmutableBitSet>> topBuilder,
SqlNode groupExpr)
Analyzes an expression in a GROUP BY clause.
|
private static List<ImmutableBitSet> |
SqlValidatorUtil.analyzeGroupTuple(SqlValidatorScope scope,
SqlValidatorUtil.GroupAnalyzer groupAnalyzer,
List<SqlNode> operandList)
Analyzes a tuple in a GROUPING SETS clause.
|
private void |
SqlValidatorImpl.checkRollUp(SqlNode grandParent,
SqlNode parent,
SqlNode current,
SqlValidatorScope scope) |
private void |
SqlValidatorImpl.checkRollUp(SqlNode grandParent,
SqlNode parent,
SqlNode current,
SqlValidatorScope scope,
String optionalClause) |
private void |
SqlValidatorImpl.checkRollUpInWindow(SqlWindow window,
SqlValidatorScope scope) |
private static List<SqlValidatorNamespace> |
SqlValidatorUtil.children(SqlValidatorScope scope) |
static boolean |
SqlValidatorUtil.containsMonotonic(SqlValidatorScope scope)
Returns whether there are any input columns that are sorted.
|
private static void |
SqlValidatorUtil.convertGroupSet(SqlValidatorScope scope,
SqlValidatorUtil.GroupAnalyzer groupAnalyzer,
com.google.common.collect.ImmutableList.Builder<ImmutableBitSet> builder,
SqlNode groupExpr)
Analyzes a GROUPING SETS item in a GROUP BY clause.
|
static SqlNodeList |
SqlValidatorUtil.DeepCopier.copy(SqlValidatorScope scope,
SqlNodeList list)
Deprecated.
Copies a list of nodes.
|
static SqlQualified |
SqlQualified.create(SqlValidatorScope scope,
int prefixLength,
SqlValidatorNamespace namespace,
SqlIdentifier identifier) |
void |
SqlValidator.declareCursor(SqlSelect select,
SqlValidatorScope scope)
Declares a SELECT expression as a cursor.
|
void |
SqlValidatorImpl.declareCursor(SqlSelect select,
SqlValidatorScope parentScope) |
RelDataType |
SqlValidator.deriveConstructorType(SqlValidatorScope scope,
SqlCall call,
SqlFunction unresolvedConstructor,
SqlFunction resolvedConstructor,
List<RelDataType> argTypes)
Derives the type of a constructor.
|
RelDataType |
SqlValidatorImpl.deriveConstructorType(SqlValidatorScope scope,
SqlCall call,
SqlFunction unresolvedConstructor,
SqlFunction resolvedConstructor,
List<RelDataType> argTypes) |
RelDataType |
SqlValidator.deriveType(SqlValidatorScope scope,
SqlNode operand)
Derives the type of a node in a given scope.
|
RelDataType |
SqlValidatorImpl.deriveType(SqlValidatorScope scope,
SqlNode expr) |
(package private) RelDataType |
SqlValidatorImpl.deriveTypeImpl(SqlValidatorScope scope,
SqlNode operand)
Derives the type of a node, never null.
|
SqlNode |
SqlValidator.expand(SqlNode expr,
SqlValidatorScope scope)
Expands an expression.
|
SqlNode |
SqlValidatorImpl.expand(SqlNode expr,
SqlValidatorScope scope) |
SqlNode |
SqlValidatorImpl.expandGroupByOrHavingExpr(SqlNode expr,
SqlValidatorScope scope,
SqlSelect select,
boolean havingExpression) |
private Pair<String,String> |
SqlValidatorImpl.findTableColumnPair(SqlIdentifier identifier,
SqlValidatorScope scope) |
void |
SqlValidatorScope.Resolved.found(SqlValidatorNamespace namespace,
boolean nullable,
SqlValidatorScope scope,
SqlValidatorScope.Path path,
List<String> remainingNames) |
void |
SqlValidatorScope.ResolvedImpl.found(SqlValidatorNamespace namespace,
boolean nullable,
SqlValidatorScope scope,
SqlValidatorScope.Path path,
List<String> remainingNames) |
static AggregatingSelectScope |
SqlValidatorUtil.getEnclosingAggregateSelectScope(SqlValidatorScope scope) |
static SelectScope |
SqlValidatorUtil.getEnclosingSelectScope(SqlValidatorScope scope) |
private SqlValidatorNamespace |
SqlValidatorImpl.getNamespace(SqlNode node,
SqlValidatorScope scope) |
(package private) RelDataType |
SqlValidatorImpl.getTableConstructorRowType(SqlCall values,
SqlValidatorScope scope)
Returns null if there is no common type.
|
protected SqlWindow |
SqlValidatorImpl.getWindowByName(SqlIdentifier id,
SqlValidatorScope scope) |
protected void |
SqlValidatorImpl.inferUnknownTypes(RelDataType inferredType,
SqlValidatorScope scope,
SqlNode node) |
private boolean |
SqlValidatorImpl.isRolledUpColumn(SqlIdentifier identifier,
SqlValidatorScope scope) |
private boolean |
SqlValidatorImpl.isRolledUpColumnAllowedInAgg(SqlIdentifier identifier,
SqlValidatorScope scope,
SqlCall aggCall,
SqlNode parent) |
static SqlValidatorNamespace |
SqlValidatorUtil.lookup(SqlValidatorScope scope,
List<String> names)
Resolves a multi-part identifier such as "SCHEMA.EMP.EMPNO" to a
namespace.
|
private void |
SqlValidatorImpl.lookupFromHints(SqlNode node,
SqlValidatorScope scope,
SqlParserPos pos,
Collection<SqlMoniker> hintList) |
private void |
SqlValidatorImpl.lookupJoinHints(SqlJoin join,
SqlValidatorScope scope,
SqlParserPos pos,
Collection<SqlMoniker> hintList) |
void |
SqlValidatorImpl.lookupNameCompletionHints(SqlValidatorScope scope,
List<String> names,
SqlParserPos pos,
Collection<SqlMoniker> hintList)
Populates a list of all the valid alternatives for an identifier.
|
private SqlNode |
SqlValidatorImpl.registerFrom(SqlValidatorScope parentScope,
SqlValidatorScope usingScope,
SqlNode node,
SqlNode enclosingNode,
String alias,
SqlNodeList extendList,
boolean forceNullable)
Registers scopes and namespaces implied a relational expression in the
FROM clause.
|
private void |
SqlValidatorImpl.registerMatchRecognize(SqlValidatorScope parentScope,
SqlValidatorScope usingScope,
SqlMatchRecognize call,
SqlNode enclosingNode,
String alias,
boolean forceNullable) |
protected void |
SqlValidatorImpl.registerNamespace(SqlValidatorScope usingScope,
String alias,
SqlValidatorNamespace ns,
boolean forceNullable)
Registers a new namespace, and adds it as a child of its parent scope.
|
private void |
SqlValidatorImpl.registerOperandSubQueries(SqlValidatorScope parentScope,
SqlCall call,
int operandOrdinal)
Registers any sub-queries inside a given call operand, and converts the
operand to a scalar sub-query if the operator requires it.
|
private void |
SqlValidatorImpl.registerQuery(SqlValidatorScope parentScope,
SqlValidatorScope usingScope,
SqlNode node,
SqlNode enclosingNode,
String alias,
boolean forceNullable)
Registers a query in a parent scope.
|
private void |
SqlValidatorImpl.registerQuery(SqlValidatorScope parentScope,
SqlValidatorScope usingScope,
SqlNode node,
SqlNode enclosingNode,
String alias,
boolean forceNullable,
boolean checkUpdate)
Registers a query in a parent scope.
|
private void |
SqlValidatorImpl.registerSetop(SqlValidatorScope parentScope,
SqlValidatorScope usingScope,
SqlNode node,
SqlNode enclosingNode,
String alias,
boolean forceNullable) |
private void |
SqlValidatorImpl.registerSubQueries(SqlValidatorScope parentScope,
SqlNode node) |
private void |
SqlValidatorImpl.registerWith(SqlValidatorScope parentScope,
SqlValidatorScope usingScope,
SqlWith with,
SqlNode enclosingNode,
String alias,
boolean forceNullable,
boolean checkUpdate) |
SqlWindow |
SqlValidator.resolveWindow(SqlNode windowOrRef,
SqlValidatorScope scope,
boolean populateBounds)
Converts a window specification or window name into a fully-resolved
window specification.
|
SqlWindow |
SqlValidatorImpl.resolveWindow(SqlNode windowOrRef,
SqlValidatorScope scope,
boolean populateBounds) |
void |
SqlValidator.validateAggregateParams(SqlCall aggCall,
SqlNode filter,
SqlValidatorScope scope)
Validates parameters for aggregate function.
|
void |
SqlValidatorImpl.validateAggregateParams(SqlCall aggCall,
SqlNode filter,
SqlValidatorScope scope) |
void |
SqlValidator.validateCall(SqlCall call,
SqlValidatorScope scope)
Validates a call to an operator.
|
void |
SqlValidatorImpl.validateCall(SqlCall call,
SqlValidatorScope scope) |
private void |
SqlValidatorImpl.validateExpr(SqlNode expr,
SqlValidatorScope scope)
Validates an expression.
|
protected void |
SqlValidatorImpl.validateFrom(SqlNode node,
RelDataType targetRowType,
SqlValidatorScope scope)
Validates the FROM clause of a query, or (recursively) a child node of
the FROM clause: AS, OVER, JOIN, VALUES, or sub-query.
|
private void |
SqlValidatorImpl.validateGroupingSets(SqlValidatorScope groupScope,
AggregatingSelectScope aggregatingScope,
SqlCall groupItem) |
private void |
SqlValidatorImpl.validateGroupItem(SqlValidatorScope groupScope,
AggregatingSelectScope aggregatingScope,
SqlNode groupItem) |
void |
SqlValidator.validateIdentifier(SqlIdentifier id,
SqlValidatorScope scope)
Resolves an identifier to a fully-qualified name.
|
void |
SqlValidatorImpl.validateIdentifier(SqlIdentifier id,
SqlValidatorScope scope) |
protected void |
SqlValidatorImpl.validateJoin(SqlJoin join,
SqlValidatorScope scope) |
protected void |
SqlValidatorImpl.validateOver(SqlCall call,
SqlValidatorScope scope) |
void |
SqlValidator.validateQuery(SqlNode node,
SqlValidatorScope scope,
RelDataType targetRowType)
Checks that a query is valid.
|
void |
SqlValidatorImpl.validateQuery(SqlNode node,
SqlValidatorScope scope,
RelDataType targetRowType) |
private SqlNode |
SqlValidatorImpl.validateScopedExpression(SqlNode topNode,
SqlValidatorScope scope) |
void |
SqlValidator.validateSequenceValue(SqlValidatorScope scope,
SqlIdentifier id) |
void |
SqlValidatorImpl.validateSequenceValue(SqlValidatorScope scope,
SqlIdentifier id) |
protected void |
SqlValidatorImpl.validateValues(SqlCall node,
RelDataType targetRowType,
SqlValidatorScope scope)
Validates a VALUES clause.
|
protected void |
SqlValidatorImpl.validateWhereOrOn(SqlValidatorScope scope,
SqlNode condition,
String clause) |
void |
SqlValidator.validateWindow(SqlNode windowOrId,
SqlValidatorScope scope,
SqlCall call)
Validates the right-hand side of an OVER expression.
|
void |
SqlValidatorImpl.validateWindow(SqlNode windowOrId,
SqlValidatorScope scope,
SqlCall call) |
void |
SqlValidator.validateWith(SqlWith with,
SqlValidatorScope scope) |
void |
SqlValidatorImpl.validateWith(SqlWith with,
SqlValidatorScope scope) |
| Modifier and Type | Field and Description |
|---|---|
SqlValidatorScope |
SqlToRelConverter.Blackboard.scope
Collection of
RelNode objects which correspond to a SELECT
statement. |
| Modifier and Type | Method and Description |
|---|---|
protected SqlToRelConverter.Blackboard |
SqlToRelConverter.createBlackboard(SqlValidatorScope scope,
Map<String,RexNode> nameToNodeMap,
boolean top)
Factory method for creating translation workspace.
|
private static SqlNode |
SqlToRelConverter.pushDownNotForIn(SqlValidatorScope scope,
SqlNode sqlNode)
Push down all the NOT logical operators into any IN/NOT IN operators.
|
private static SqlNode |
SqlToRelConverter.reg(SqlValidatorScope scope,
SqlNode e)
Registers with the validator a
SqlNode that has been created
during the Sql-to-Rel process. |
| Constructor and Description |
|---|
Blackboard(SqlValidatorScope scope,
Map<String,RexNode> nameToNodeMap,
boolean top)
Creates a Blackboard.
|
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.