Package org.apache.calcite.sql.validate
SQL validation.
-
Interface Summary Interface Description AggregatingScope An extension to theSqlValidatorScope
interface which indicates that the scope is aggregating.SqlConformance Enumeration of valid SQL compatibility modes.SqlMoniker An interface of an object identifier that represents a SqlIdentifierSqlNameMatcher Checks whether two names are the same according to a case-sensitivity policy.SqlValidator Validates the parse tree of a SQL statement, and provides semantic information about the parse tree.SqlValidatorCatalogReader Supplies catalog information forSqlValidator
.SqlValidatorNamespace A namespace describes the relation returned by a section of a SQL query.SqlValidatorScope Name-resolution scope.SqlValidatorScope.Resolved SqlValidatorTable Supplies aSqlValidator
with the metadata for a table.SqlValidatorUtil.Suggester Suggests candidates for unique names, given the number of attempts so far and the number of expressions in the project list.SqlValidatorWithHints ExtendsSqlValidator
to allow discovery of useful data such as fully qualified names of sql objects, alternative valid sql objects that can be used in the SQL statement (dubbed as hints) -
Class Summary Class Description AbstractNamespace Abstract implementation ofSqlValidatorNamespace
.AggChecker Visitor which throws an exception if any component of the expression is not a group expression.AggFinder Visitor that looks for an aggregate function inside a tree ofSqlNode
objects and throwsUtil.FoundOne
when it finds one.AggFinder.AggIterable Iterates over all aggregates.AggregatingSelectScope Scope for resolving identifiers within a SELECT statement that has a GROUP BY clause.AggVisitor Visitor that can find aggregate and windowed aggregate functions.AliasNamespace Namespace for anAS t(c1, c2, ...)
clause.CatalogScope Implementation ofSqlValidatorScope
that can see all schemas in the current catalog.CollectNamespace Namespace for COLLECT and TABLE constructs.CollectScope The name-resolution context for expression inside a multiset call.DelegatingNamespace An implementation ofSqlValidatorNamespace
that delegates all methods to an underlying object.DelegatingScope A scope which delegates all requests to its parent scope.DelegatingSqlValidatorCatalogReader Implementation ofSqlValidatorCatalogReader
that passes all calls to a parent catalog reader.DelegatingSqlValidatorTable ImplementsSqlValidatorTable
by delegating to a parent table.EmptyScope Deviant implementation ofSqlValidatorScope
for the top of the scope stack.FieldNamespace Implementation ofSqlValidatorNamespace
for a field of a record.GroupByScope Represents the name-resolution context for expressions in an GROUP BY clause.IdentifierNamespace Namespace whose contents are defined by the type of anidentifier
.JoinNamespace Namespace representing the row type produced by joining two relations.JoinScope The name-resolution context for expression inside a JOIN clause.ListScope Abstract base for a scope which is defined by a list of child namespaces and which inherits from a parent scope.MatchRecognizeNamespace Namespace for aMATCH_RECOGNIZE
clause.MatchRecognizeScope Scope for expressions in aMATCH_RECOGNIZE
clause.OrderByScope Represents the name-resolution context for expressions in an ORDER BY clause.OverScope The name-resolution scope of a OVER clause.ParameterNamespace Namespace representing the type of a dynamic parameter.ParameterScope A scope which contains nothing besides a few parameters.ProcedureNamespace Namespace whose contents are defined by the result of a call to a user-defined procedure.SchemaNamespace Namespace based on a schema.ScopeChild One of the inputs of aSqlValidatorScope
.SelectNamespace Namespace offered by a sub-query.SelectScope The name-resolution scope of a SELECT clause.SetopNamespace Namespace based upon a set operation (UNION, INTERSECT, EXCEPT).SqlAbstractConformance Abstract base class for implementingSqlConformance
.SqlDelegatingConformance Implementation ofSqlConformance
that delegates all methods to another object.SqlIdentifierMoniker An implementation ofSqlMoniker
that encapsulates the normalized name information of aSqlIdentifier
.SqlMonikerImpl A generic implementation ofSqlMoniker
.SqlNameMatchers Helpers forSqlNameMatcher
.SqlNameMatchers.BaseMatcher Partial implementation ofSqlNameMatcher
.SqlNameMatchers.LiberalNameMatcher Matcher that remembers the requests that were made of it.SqlQualified Fully-qualified identifier.SqlScopedShuttle Refinement toSqlShuttle
which maintains a stack of scopes.SqlUserDefinedAggFunction User-defined aggregate function.SqlUserDefinedFunction User-defined scalar function.SqlUserDefinedTableFunction User-defined table function.SqlUserDefinedTableMacro User-defined table macro.SqlValidatorImpl Default implementation ofSqlValidator
.SqlValidatorImpl.DeleteNamespace Namespace for a DELETE statement.SqlValidatorImpl.DmlNamespace Common base class for DML statement namespaces.SqlValidatorImpl.Expander Converts an expression into canonical form by fully-qualifying any identifiers.SqlValidatorImpl.ExtendedExpander Shuttle which walks over an expression in the GROUP BY/HAVING clause, replacing usages of aliases or ordinals with the underlying expression.SqlValidatorImpl.FunctionParamInfo Utility object used to maintain information about the parameters in a function call.SqlValidatorImpl.IdInfo Information about an identifier in a particular scope.SqlValidatorImpl.InsertNamespace Namespace for an INSERT statement.SqlValidatorImpl.MergeNamespace Namespace for a MERGE statement.SqlValidatorImpl.NavigationExpander Shuttle that expands navigation expressions in a MATCH_RECOGNIZE clause.SqlValidatorImpl.NavigationModifier Modify the nodes in navigation function such as FIRST, LAST, PREV AND NEXT.SqlValidatorImpl.NavigationReplacer Shuttle that replacesA as A.price > PREV(B.price)
withPREV(A.price, 0) > LAST(B.price, 0)
.SqlValidatorImpl.UpdateNamespace Namespace for an UPDATE statement.SqlValidatorScope.EmptyPath A path that has no steps.SqlValidatorScope.Path A sequence of steps by which an identifier was resolved.SqlValidatorScope.Resolve A match found when looking up a name.SqlValidatorScope.ResolvedImpl Default implementation ofSqlValidatorScope.Resolved
.SqlValidatorScope.Step A step in resolving an identifier.SqlValidatorUtil Utility methods related to validation.SqlValidatorUtil.DeepCopier Deprecated. SqlValidatorUtil.GroupAnalyzer Builds a list of GROUP BY expressions.TableConstructorNamespace Namespace for a table constructorVALUES (expr, expr, ...)
.TableNamespace Namespace based on a table from the catalog.TableScope The name-resolution scope of a LATERAL TABLE clause.UnnestNamespace Namespace for UNNEST.WithItemNamespace Very similar toAliasNamespace
.WithNamespace Namespace forWITH
clause.WithScope Scope providing the objects that are available after evaluating an item in a WITH clause. -
Enum Summary Enum Description SqlConformanceEnum Enumeration of built-in SQL compatibility modes.SqlModality Relational or streaming.SqlMonikerType An enumeration of moniker types.SqlMonotonicity Enumeration of types of monotonicity.SqlValidatorImpl.Status Validation status. -
Exception Summary Exception Description CyclicDefinitionException Thrown when an object, such as a view, is found to have a cylic definition.SqlUserDefinedTableMacro.NonLiteralException Thrown when a non-literal occurs in an argument to a user-defined table macro.SqlValidatorException Exception thrown while validating a SQL statement.