OmniSciDB
a5dc49c757
|
Classes | |
enum | Clause |
class | DeleteNamespace |
class | DeriveTypeVisitor |
class | DmlNamespace |
class | Expander |
class | ExtendedExpander |
class | FunctionParamInfo |
class | IdInfo |
class | InsertNamespace |
class | MergeNamespace |
class | NavigationExpander |
class | NavigationModifier |
class | NavigationReplacer |
class | OrderExpressionExpander |
class | PatternValidator |
class | PatternVarVisitor |
class | Permute |
class | SelectExpander |
enum | Status |
class | UpdateNamespace |
class | ValidationError |
class | ValidationErrorFunction |
Public Member Functions | |
SqlConformance | getConformance () |
SqlValidatorCatalogReader | getCatalogReader () |
SqlOperatorTable | getOperatorTable () |
RelDataTypeFactory | getTypeFactory () |
RelDataType | getUnknownType () |
SqlNodeList | expandStar (SqlNodeList selectList, SqlSelect select, boolean includeSystemVars) |
void | declareCursor (SqlSelect select, SqlValidatorScope parentScope) |
void | pushFunctionCall () |
void | popFunctionCall () |
String | getParentCursor (String columnListParamName) |
List< String > | usingNames (SqlJoin join) |
SqlNode | validate (SqlNode topNode) |
List< SqlMoniker > | lookupHints (SqlNode topNode, SqlParserPos pos) |
SqlMoniker | lookupQualifiedName (SqlNode topNode, SqlParserPos pos) |
final void | lookupNameCompletionHints (SqlValidatorScope scope, List< String > names, SqlParserPos pos, Collection< SqlMoniker > hintList) |
SqlNode | validateParameterizedExpression (SqlNode topNode, final Map< String, RelDataType > nameToTypeMap) |
void | validateQuery (SqlNode node, SqlValidatorScope scope, RelDataType targetRowType) |
SqlValidatorScope | getEmptyScope () |
SqlValidatorScope | getCursorScope (SqlSelect select) |
SqlValidatorScope | getWhereScope (SqlSelect select) |
SqlValidatorScope | getSelectScope (SqlSelect select) |
SelectScope | getRawSelectScope (SqlSelect select) |
SqlValidatorScope | getHavingScope (SqlSelect select) |
SqlValidatorScope | getGroupScope (SqlSelect select) |
SqlValidatorScope | getFromScope (SqlSelect select) |
SqlValidatorScope | getOrderScope (SqlSelect select) |
SqlValidatorScope | getMatchRecognizeScope (SqlMatchRecognize node) |
SqlValidatorScope | getJoinScope (SqlNode node) |
SqlValidatorScope | getOverScope (SqlNode node) |
SqlValidatorNamespace | getNamespace (SqlNode node) |
RelDataType | getValidatedNodeType (SqlNode node) |
RelDataType | getValidatedNodeTypeIfKnown (SqlNode node) |
final void | setValidatedNodeType (SqlNode node, RelDataType type) |
void | removeValidatedNodeType (SqlNode node) |
SqlCall | makeNullaryCall (SqlIdentifier id) |
RelDataType | deriveType (SqlValidatorScope scope, SqlNode expr) |
RelDataType | deriveConstructorType (SqlValidatorScope scope, SqlCall call, SqlFunction unresolvedConstructor, SqlFunction resolvedConstructor, List< RelDataType > argTypes) |
CalciteException | handleUnresolvedFunction (SqlCall call, SqlFunction unresolvedFunction, List< RelDataType > argTypes, List< String > argNames) |
String | deriveAlias (SqlNode node, int ordinal) |
boolean | isAggregate (SqlSelect select) |
boolean | isAggregate (SqlNode selectNode) |
void | validateIdentifier (SqlIdentifier id, SqlValidatorScope scope) |
void | validateLiteral (SqlLiteral literal) |
void | validateIntervalQualifier (SqlIntervalQualifier qualifier) |
boolean | validateModality (SqlSelect select, SqlModality modality, boolean fail) |
void | validateWith (SqlWith with, SqlValidatorScope scope) |
void | validateWithItem (SqlWithItem withItem) |
void | validateSequenceValue (SqlValidatorScope scope, SqlIdentifier id) |
SqlValidatorScope | getWithScope (SqlNode withItem) |
TypeCoercion | getTypeCoercion () |
Config | config () |
SqlValidator | transform (UnaryOperator< Config > transform) |
SqlNode | expandOrderExpr (SqlSelect select, SqlNode orderExpr) |
void | validateInsert (SqlInsert insert) |
void | validateDelete (SqlDelete call) |
void | validateUpdate (SqlUpdate call) |
void | validateMerge (SqlMerge call) |
void | validateDataType (SqlDataTypeSpec dataType) |
void | validateDynamicParam (SqlDynamicParam dynamicParam) |
ValidationErrorFunction | getValidationErrorFunction () |
CalciteContextException | newValidationError (SqlNode node, Resources.ExInst< SqlValidatorException > e) |
SqlWindow | resolveWindow (SqlNode windowOrRef, SqlValidatorScope scope) |
SqlNode | getOriginal (SqlNode expr) |
void | setOriginal (SqlNode expr, SqlNode original) |
void | validateWindow (SqlNode windowOrId, SqlValidatorScope scope, SqlCall call) |
void | validateMatchRecognize (SqlCall call) |
void | validateAggregateParams (SqlCall aggCall, SqlNode filter, SqlNodeList orderList, SqlValidatorScope scope) |
void | validateCall (SqlCall call, SqlValidatorScope scope) |
SqlNode | expandSelectExpr (SqlNode expr, SelectScope scope, SqlSelect select) |
SqlNode | expand (SqlNode expr, SqlValidatorScope scope) |
SqlNode | expandGroupByOrHavingExpr (SqlNode expr, SqlValidatorScope scope, SqlSelect select, boolean havingExpression) |
boolean | isSystemField (RelDataTypeField field) |
List< List< String > > | getFieldOrigins (SqlNode sqlQuery) |
RelDataType | getParameterRowType (SqlNode sqlQuery) |
void | validateColumnListParams (SqlFunction function, List< RelDataType > argTypes, List< SqlNode > operands) |
Static Public Attributes | |
static final Logger | TRACER = CalciteTrace.PARSER_LOGGER |
static final String | UPDATE_SRC_ALIAS = "SYS$SRC" |
static final String | UPDATE_TGT_ALIAS = "SYS$TGT" |
static final String | UPDATE_ANON_PREFIX = "SYS$ANON" |
Protected Member Functions | |
SqlValidatorImpl (SqlOperatorTable opTab, SqlValidatorCatalogReader catalogReader, RelDataTypeFactory typeFactory, Config config) | |
void | validateNamespace (final SqlValidatorNamespace namespace, RelDataType targetRowType) |
SqlNode | performUnconditionalRewrites (SqlNode node, boolean underFrom) |
SqlNode | getSelfJoinExprForUpdate (SqlNode table, String alias) |
SqlSelect | createSourceSelectForUpdate (SqlUpdate call) |
SqlSelect | createSourceSelectForDelete (SqlDelete call) |
void | inferUnknownTypes (@Nonnull RelDataType inferredType,@Nonnull SqlValidatorScope scope,@Nonnull SqlNode node) |
void | addToSelectList (List< SqlNode > list, Set< String > aliases, List< Map.Entry< String, RelDataType >> fieldList, SqlNode exp, SelectScope scope, final boolean includeSystemVars) |
boolean | shouldAllowIntermediateOrderBy () |
MatchRecognizeNamespace | createMatchRecognizeNameSpace (SqlMatchRecognize call, SqlNode enclosingNode) |
void | registerNamespace (SqlValidatorScope usingScope, String alias, SqlValidatorNamespace ns, boolean forceNullable) |
boolean | shouldAllowOverRelation () |
SelectNamespace | createSelectNamespace (SqlSelect select, SqlNode enclosingNode) |
SetopNamespace | createSetopNamespace (SqlCall call, SqlNode enclosingNode) |
boolean | isNestedAggregateWindow (SqlNode node) |
boolean | isOverAggregateWindow (SqlNode node) |
SqlNode | getAggregate (SqlSelect select) |
void | validateFrom (SqlNode node, RelDataType targetRowType, SqlValidatorScope scope) |
void | validateOver (SqlCall call, SqlValidatorScope scope) |
void | validateUnnest (SqlCall call, SqlValidatorScope scope, RelDataType targetRowType) |
void | validateJoin (SqlJoin join, SqlValidatorScope scope) |
void | validateSelect (SqlSelect select, RelDataType targetRowType) |
void | validateWindowClause (SqlSelect select) |
void | validateOrderList (SqlSelect select) |
void | validateGroupClause (SqlSelect select) |
void | validateWhereClause (SqlSelect select) |
void | validateWhereOrOn (SqlValidatorScope scope, SqlNode condition, String clause) |
void | validateHavingClause (SqlSelect select) |
RelDataType | validateSelectList (final SqlNodeList selectItems, SqlSelect select, RelDataType targetRowType) |
RelDataType | createTargetRowType (SqlValidatorTable table, SqlNodeList targetColumnList, boolean append) |
RelDataType | getLogicalTargetRowType (RelDataType targetRowType, SqlInsert insert) |
RelDataType | getLogicalSourceRowType (RelDataType sourceRowType, SqlInsert insert) |
void | checkTypeAssignment (SqlValidatorScope sourceScope, SqlValidatorTable table, RelDataType sourceRowType, RelDataType targetRowType, final SqlNode query) |
void | validateValues (SqlCall node, RelDataType targetRowType, final SqlValidatorScope scope) |
SqlWindow | getWindowByName (SqlIdentifier id, SqlValidatorScope scope) |
void | validateFeature (Feature feature, SqlParserPos context) |
Protected Attributes | |
final Map< String, IdInfo > | idPositions = new HashMap<>() |
final Map< SqlNode, SqlValidatorScope > | scopes |
final Map< SqlNode, SqlValidatorNamespace > | namespaces |
final Deque< FunctionParamInfo > | functionCallStack |
final RelDataTypeFactory | typeFactory |
final RelDataType | unknownType |
Package Functions | |
void | lookupSelectHints (SqlSelect select, SqlParserPos pos, Collection< SqlMoniker > hintList) |
RelDataType | getTableConstructorRowType (SqlCall values, SqlValidatorScope scope) |
RelDataType | deriveTypeImpl (SqlValidatorScope scope, SqlNode operand) |
SqlValidatorNamespace | lookupFieldNamespace (RelDataType rowType, String name) |
Package Attributes | |
final SqlValidatorCatalogReader | catalogReader |
Private Member Functions | |
boolean | expandSelectItem (final SqlNode selectItem, SqlSelect select, RelDataType targetType, List< SqlNode > selectItems, Set< String > aliases, List< Map.Entry< String, RelDataType >> fields, final boolean includeSystemVars) |
boolean | expandStar (List< SqlNode > selectItems, Set< String > aliases, List< Map.Entry< String, RelDataType >> fields, boolean includeSystemVars, SelectScope scope, SqlNode node) |
SqlNode | maybeCast (SqlNode node, RelDataType currentType, RelDataType desiredType) |
boolean | addOrExpandField (List< SqlNode > selectItems, Set< String > aliases, List< Map.Entry< String, RelDataType >> fields, boolean includeSystemVars, SelectScope scope, SqlIdentifier id, RelDataTypeField field) |
void | lookupSelectHints (SqlValidatorNamespace ns, SqlParserPos pos, Collection< SqlMoniker > hintList) |
void | lookupFromHints (SqlNode node, SqlValidatorScope scope, SqlParserPos pos, Collection< SqlMoniker > hintList) |
void | lookupJoinHints (SqlJoin join, SqlValidatorScope scope, SqlParserPos pos, Collection< SqlMoniker > hintList) |
SqlNode | validateScopedExpression (SqlNode topNode, SqlValidatorScope scope) |
SqlValidatorNamespace | getNamespace (SqlNode node, SqlValidatorScope scope) |
SqlValidatorNamespace | getNamespace (SqlIdentifier id, DelegatingScope scope) |
void | handleOffsetFetch (SqlNode offset, SqlNode fetch) |
SqlSelect | getInnerSelect (SqlNode node) |
void | rewriteMerge (SqlMerge call) |
SqlNode | rewriteUpdateToMerge (SqlUpdate updateCall, SqlNode selfJoinSrcExpr) |
void | registerMatchRecognize (SqlValidatorScope parentScope, SqlValidatorScope usingScope, SqlMatchRecognize call, SqlNode enclosingNode, String alias, boolean forceNullable) |
SqlNode | registerFrom (SqlValidatorScope parentScope, SqlValidatorScope usingScope, boolean register, final SqlNode node, SqlNode enclosingNode, String alias, SqlNodeList extendList, boolean forceNullable, final boolean lateral) |
void | registerQuery (SqlValidatorScope parentScope, SqlValidatorScope usingScope, SqlNode node, SqlNode enclosingNode, String alias, boolean forceNullable) |
void | registerQuery (SqlValidatorScope parentScope, SqlValidatorScope usingScope, SqlNode node, SqlNode enclosingNode, String alias, boolean forceNullable, boolean checkUpdate) |
void | registerSetop (SqlValidatorScope parentScope, SqlValidatorScope usingScope, SqlNode node, SqlNode enclosingNode, String alias, boolean forceNullable) |
void | registerWith (SqlValidatorScope parentScope, SqlValidatorScope usingScope, SqlWith with, SqlNode enclosingNode, String alias, boolean forceNullable, boolean checkUpdate) |
SqlNode | getAgg (SqlSelect select) |
void | validateNodeFeature (SqlNode node) |
void | registerSubQueries (SqlValidatorScope parentScope, SqlNode node) |
void | registerOperandSubQueries (SqlValidatorScope parentScope, SqlCall call, int operandOrdinal) |
void | validateLiteralAsDouble (SqlLiteral literal) |
void | checkRollUpInUsing (SqlIdentifier identifier, SqlNode leftOrRight, SqlValidatorScope scope) |
void | validateNoAggs (AggFinder aggFinder, SqlNode node, String clause) |
RelDataType | validateUsingCol (SqlIdentifier id, SqlNode leftOrRight) |
void | checkRollUpInSelectList (SqlSelect select) |
void | checkRollUpInGroupBy (SqlSelect select) |
void | checkRollUpInOrderBy (SqlSelect select) |
void | checkRollUpInWindow (SqlWindow window, SqlValidatorScope scope) |
void | checkRollUpInWindowDecl (SqlSelect select) |
SqlNode | stripDot (SqlNode node) |
void | checkRollUp (SqlNode grandParent, SqlNode parent, SqlNode current, SqlValidatorScope scope, String optionalClause) |
void | checkRollUp (SqlNode grandParent, SqlNode parent, SqlNode current, SqlValidatorScope scope) |
SqlWindow | getWindowInOver (SqlNode over) |
Pair< String, String > | findTableColumnPair (SqlIdentifier identifier, SqlValidatorScope scope) |
boolean | isRolledUpColumnAllowedInAgg (SqlIdentifier identifier, SqlValidatorScope scope, SqlCall aggCall, SqlNode parent) |
boolean | isRolledUpColumn (SqlIdentifier identifier, SqlValidatorScope scope) |
boolean | shouldCheckForRollUp (SqlNode from) |
void | validateModality (SqlNode query) |
SqlModality | deduceModality (SqlNode query) |
boolean | hasSortedPrefix (SelectScope scope, SqlNodeList orderList) |
boolean | isSortCompatible (SelectScope scope, SqlNode node, boolean descending) |
void | validateGroupByItem (SqlSelect select, SqlNode groupByItem) |
void | validateGroupByExpr (SqlNode groupByItem, SqlValidatorScope groupByScope) |
void | validateOrderItem (SqlSelect select, SqlNode orderItem) |
void | validateGroupItem (SqlValidatorScope groupScope, AggregatingSelectScope aggregatingScope, SqlNode groupItem) |
void | validateGroupingSets (SqlValidatorScope groupScope, AggregatingSelectScope aggregatingScope, SqlCall groupItem) |
void | validateExpr (SqlNode expr, SqlValidatorScope scope) |
void | handleScalarSubQuery (SqlSelect parentSelect, SqlSelect selectItem, List< SqlNode > expandedSelectItems, Set< String > aliasList, List< Map.Entry< String, RelDataType >> fieldList) |
void | checkConstraint (SqlValidatorTable validatorTable, SqlNode source, RelDataType targetRowType) |
void | checkConstraint (SqlValidatorTable validatorTable, SqlUpdate update, RelDataType targetRowType) |
void | checkFieldCount (SqlNode node, SqlValidatorTable table, List< ColumnStrategy > strategies, RelDataType targetRowTypeToValidate, RelDataType realTargetRowType, SqlNode source, RelDataType logicalSourceRowType, RelDataType logicalTargetRowType) |
boolean | isValuesWithDefault (SqlNode source, int column) |
boolean | isRowWithDefault (SqlNode operand, int column) |
SqlNode | getNthExpr (SqlNode query, int ordinal, int sourceCount) |
void | validateAccess (SqlNode node, SqlValidatorTable table, SqlAccessEnum requiredAccess) |
void | validateSnapshot (SqlNode node, SqlValidatorScope scope, SqlValidatorNamespace ns) |
List< Map.Entry< String, RelDataType > > | validateMeasure (SqlMatchRecognize mr, MatchRecognizeScope scope, boolean allRows) |
SqlNode | navigationInMeasure (SqlNode node, boolean allRows) |
void | validateDefinitions (SqlMatchRecognize mr, MatchRecognizeScope scope) |
SqlNode | navigationInDefine (SqlNode node, String alpha) |
List< String > | getFieldOrigin (SqlNode sqlQuery, int i) |
Static Private Member Functions | |
static SqlNode | expandExprFromJoin (SqlJoin join, SqlIdentifier identifier, SelectScope scope) |
static SqlNode | expandCommonColumn (SqlSelect sqlSelect, SqlNode selectItem, SelectScope scope, SqlValidatorImpl validator) |
static void | validateQualifiedCommonColumn (SqlJoin join, SqlIdentifier identifier, SelectScope scope, SqlValidatorImpl validator) |
static void | findAllValidUdfNames (List< String > names, SqlValidator validator, Collection< SqlMoniker > result) |
static void | findAllValidFunctionNames (List< String > names, SqlValidator validator, Collection< SqlMoniker > result, SqlParserPos pos) |
static SqlNode | stripOver (SqlNode node) |
static String | alias (SqlNode item) |
static boolean | isPhysicalNavigation (SqlKind kind) |
static boolean | isLogicalNavigation (SqlKind kind) |
static boolean | isAggregation (SqlKind kind) |
static boolean | isRunningOrFinal (SqlKind kind) |
static boolean | isSingleVarRequired (SqlKind kind) |
Private Attributes | |
final SqlOperatorTable | opTab |
final Map< IdPair< SqlSelect, Clause >, SqlValidatorScope > | clauseScopes = new HashMap<>() |
TableScope | tableScope = null |
final Set< SqlNode > | cursorSet = Sets.newIdentityHashSet() |
int | nextGeneratedId |
final RelDataType | booleanType |
final Map< SqlNode, RelDataType > | nodeToTypeMap |
final AggFinder | aggFinder |
final AggFinder | aggOrOverFinder |
final AggFinder | aggOrOverOrGroupFinder |
final AggFinder | groupFinder |
final AggFinder | overFinder |
Config | config |
final Map< SqlNode, SqlNode > | originalExprs = new HashMap<>() |
SqlNode | top |
boolean | validatingSqlMerge |
boolean | inWindow |
final SqlValidatorImpl.ValidationErrorFunction | validationErrorFunction |
TypeCoercion | typeCoercion |
Default implementation of SqlValidator.
Definition at line 178 of file SqlValidatorImpl.java.
|
inlineprotected |
Creates a validator.
opTab | Operator table |
catalogReader | Catalog reader |
typeFactory | Type factory |
config | Config |
Definition at line 299 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.aggFinder, org.apache.calcite.sql.validate.SqlValidatorImpl.aggOrOverFinder, org.apache.calcite.sql.validate.SqlValidatorImpl.aggOrOverOrGroupFinder, org.apache.calcite.sql.validate.SqlValidatorImpl.booleanType, org.apache.calcite.sql.validate.SqlValidatorImpl.catalogReader, org.apache.calcite.sql.validate.SqlValidatorImpl.config(), org.apache.calcite.sql.validate.SqlValidatorImpl.groupFinder, org.apache.calcite.sql.validate.SqlValidatorImpl.opTab, org.apache.calcite.sql.validate.SqlValidatorImpl.overFinder, org.apache.calcite.sql.validate.SqlValidatorImpl.typeFactory, and org.apache.calcite.sql.validate.SqlValidatorImpl.unknownType.
|
inlineprivate |
Definition at line 722 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.addToSelectList(), and org.apache.calcite.sql.validate.SqlValidatorImpl.expandStar().
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.expandStar().
|
inlineprotected |
Adds an expression to a select list, ensuring that its alias does not clash with any existing expressions on the list.
Definition at line 1984 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.alias(), and org.apache.calcite.sql.validate.SqlValidatorImpl.deriveType().
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.addOrExpandField(), and org.apache.calcite.sql.validate.SqlValidatorImpl.expandStar().
|
inlinestaticprivate |
Returns the alias of a "expr AS alias" expression.
Definition at line 5381 of file SqlValidatorImpl.java.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.addToSelectList(), org.apache.calcite.sql.validate.SqlValidatorImpl.createSourceSelectForUpdate(), org.apache.calcite.sql.validate.SqlValidatorImpl.declareCursor(), org.apache.calcite.sql.validate.SqlValidatorImpl.expandSelectItem(), org.apache.calcite.sql.validate.SqlValidatorImpl.getTableConstructorRowType(), org.apache.calcite.sql.validate.SqlValidatorImpl.handleScalarSubQuery(), org.apache.calcite.sql.validate.SqlValidatorImpl.registerFrom(), org.apache.calcite.sql.validate.SqlValidatorImpl.registerNamespace(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateDefinitions(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateMeasure(), org.apache.calcite.sql.validate.SqlValidatorImpl.OrderExpressionExpander.visit(), and org.apache.calcite.sql.validate.SqlValidatorImpl.ExtendedExpander.visit().
|
inlineprivate |
Validates insert values against the constraint of a modifiable view.
validatorTable | Table that may wrap a ModifiableViewTable |
source | The values being inserted |
targetRowType | The target type for the view |
Definition at line 4431 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.typeFactory.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.validateInsert(), and org.apache.calcite.sql.validate.SqlValidatorImpl.validateUpdate().
|
inlineprivate |
Validates updates against the constraint of a modifiable view.
validatorTable | A SqlValidatorTable that may wrap a ModifiableViewTable |
update | The UPDATE parse tree node |
targetRowType | The target type |
Definition at line 4485 of file SqlValidatorImpl.java.
References Integer, and org.apache.calcite.sql.validate.SqlValidatorImpl.typeFactory.
|
inlineprivate |
Check the field count of sql insert source and target node row type.
node | target table sql identifier |
table | target table |
strategies | column strategies of target table |
targetRowTypeToValidate | row type to validate mainly for column strategies |
realTargetRowType | target table row type exclusive virtual columns |
source | source node |
logicalSourceRowType | source node row type |
logicalTargetRowType | logical target row type, contains only target columns if they are specified or if the sql dialect allows subset insert, make a subset of fields(start from the left first field) whose length is equals with the source row type fields number |
Definition at line 4535 of file SqlValidatorImpl.java.
References field(), org.apache.calcite.sql.validate.SqlValidatorImpl.isValuesWithDefault(), and org.apache.calcite.sql.validate.SqlValidatorImpl.newValidationError().
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.validateInsert().
|
inlineprivate |
Definition at line 3535 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.checkRollUpInWindow(), org.apache.calcite.sql.validate.SqlValidatorImpl.deriveAlias(), org.apache.calcite.sql.validate.SqlValidatorImpl.getWindowInOver(), org.apache.calcite.sql.validate.SqlValidatorImpl.isAggregation(), org.apache.calcite.sql.validate.SqlValidatorImpl.isRolledUpColumn(), org.apache.calcite.sql.validate.SqlValidatorImpl.isRolledUpColumnAllowedInAgg(), org.apache.calcite.sql.validate.SqlValidatorImpl.newValidationError(), org.apache.calcite.sql.validate.SqlValidatorImpl.stripDot(), org.apache.calcite.sql.validate.SqlValidatorImpl.stripOver(), and toString().
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.checkRollUp(), org.apache.calcite.sql.validate.SqlValidatorImpl.checkRollUpInGroupBy(), org.apache.calcite.sql.validate.SqlValidatorImpl.checkRollUpInOrderBy(), org.apache.calcite.sql.validate.SqlValidatorImpl.checkRollUpInSelectList(), org.apache.calcite.sql.validate.SqlValidatorImpl.checkRollUpInWindow(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateJoin(), and org.apache.calcite.sql.validate.SqlValidatorImpl.validateSelect().
|
inlineprivate |
Definition at line 3560 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.checkRollUp().
|
inlineprivate |
Definition at line 3492 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.checkRollUp(), and org.apache.calcite.sql.validate.SqlValidatorImpl.getGroupScope().
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.validateSelect().
|
inlineprivate |
Definition at line 3501 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.checkRollUp(), and org.apache.calcite.sql.validate.SqlValidatorImpl.getOrderScope().
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.validateSelect().
|
inlineprivate |
Definition at line 3485 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.checkRollUp(), and org.apache.calcite.sql.validate.SqlValidatorImpl.getSelectScope().
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.validateSelect().
|
inlineprivate |
Definition at line 3219 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.getNamespace(), and org.apache.calcite.sql.validate.SqlValidatorImpl.newValidationError().
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.validateJoin().
|
inlineprivate |
Definition at line 3510 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.checkRollUp().
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.checkRollUp(), and org.apache.calcite.sql.validate.SqlValidatorImpl.checkRollUpInWindowDecl().
|
inlineprivate |
Definition at line 3522 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.checkRollUpInWindow(), and org.apache.calcite.sql.validate.SqlValidatorImpl.getSelectScope().
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.validateSelect().
|
inlineprotected |
Checks the type assignment of an INSERT or UPDATE query.
Skip the virtual columns(can not insert into) type assignment check if the source fields count equals with the real target table fields count, see how checkFieldCount was used.
sourceScope | Scope of query source which is used to infer node type |
table | Target table |
sourceRowType | Source row type |
targetRowType | Target row type, it should either contain all the virtual columns (can not insert into) or exclude all the virtual columns |
query | The query |
Definition at line 4645 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.config(), org.apache.calcite.sql.validate.SqlValidatorImpl.getNthExpr(), org.apache.calcite.sql.validate.SqlValidatorImpl.newValidationError(), and org.apache.calcite.sql.validate.SqlValidatorImpl.typeFactory.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.validateInsert(), and org.apache.calcite.sql.validate.SqlValidatorImpl.validateUpdate().
|
inline |
Definition at line 3915 of file SqlValidatorImpl.java.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.checkTypeAssignment(), org.apache.calcite.sql.validate.SqlValidatorImpl.deriveConstructorType(), org.apache.calcite.sql.validate.SqlValidatorImpl.inferUnknownTypes(), org.apache.calcite.sql.validate.SqlValidatorImpl.performUnconditionalRewrites(), org.apache.calcite.sql.validate.SqlValidatorImpl.registerFrom(), org.apache.calcite.sql.validate.SqlValidatorImpl.SqlValidatorImpl(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateHavingClause(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateIdentifier(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateJoin(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateSelect(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateSelectList(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateValues(), and org.apache.calcite.sql.validate.SqlValidatorImpl.OrderExpressionExpander.visit().
|
inlineprotected |
Definition at line 2037 of file SqlValidatorImpl.java.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.registerMatchRecognize().
|
inlineprotected |
Creates a namespace for a SELECT
node. Derived class may override this factory method.
select | Select node |
enclosingNode | Enclosing node |
Definition at line 2463 of file SqlValidatorImpl.java.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.declareCursor(), and org.apache.calcite.sql.validate.SqlValidatorImpl.registerQuery().
|
inlineprotected |
Creates a namespace for a set operation (UNION
, INTERSECT
, or EXCEPT
). Derived class may override this factory method.
call | Call to set operation |
enclosingNode | Enclosing node |
Definition at line 2478 of file SqlValidatorImpl.java.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.registerSetop().
|
inlineprotected |
Creates the SELECT statement that putatively feeds rows into a DELETE statement to be deleted.
call | Call to the DELETE operator |
Definition at line 1637 of file SqlValidatorImpl.java.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.performUnconditionalRewrites().
|
inlineprotected |
Creates the SELECT statement that putatively feeds rows into an UPDATE statement to be updated.
call | Call to the UPDATE operator |
Definition at line 1608 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.alias().
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.performUnconditionalRewrites().
|
inlineprotected |
Derives a row-type for INSERT and UPDATE operations.
table | Target table for INSERT/UPDATE |
targetColumnList | List of target columns, or null if not specified |
append | Whether to append fields to those in baseRowType |
Definition at line 4316 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.catalogReader, org.apache.calcite.sql.validate.SqlValidatorImpl.newValidationError(), and org.apache.calcite.sql.validate.SqlValidatorImpl.typeFactory.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.validateInsert(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateMerge(), and org.apache.calcite.sql.validate.SqlValidatorImpl.validateUpdate().
|
inline |
Definition at line 373 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.alias(), org.apache.calcite.sql.validate.SqlValidatorImpl.createSelectNamespace(), org.apache.calcite.sql.validate.SqlValidatorImpl.Clause.CURSOR, org.apache.calcite.sql.validate.SqlValidatorImpl.deriveAlias(), org.apache.calcite.sql.validate.SqlValidatorImpl.nextGeneratedId, and org.apache.calcite.sql.validate.SqlValidatorImpl.registerNamespace().
|
inlineprivate |
Return the intended modality of a SELECT or set-op.
Definition at line 3677 of file SqlValidatorImpl.java.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.validateModality().
|
inline |
Definition at line 2002 of file SqlValidatorImpl.java.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.checkRollUp(), org.apache.calcite.sql.validate.SqlValidatorImpl.declareCursor(), org.apache.calcite.sql.validate.SqlValidatorImpl.expandSelectItem(), org.apache.calcite.sql.validate.SqlValidatorImpl.getTableConstructorRowType(), org.apache.calcite.sql.validate.SqlValidatorImpl.handleScalarSubQuery(), org.apache.calcite.sql.validate.SqlValidatorImpl.registerFrom(), org.apache.calcite.sql.validate.SqlValidatorImpl.registerQuery(), and org.apache.calcite.sql.validate.SqlValidatorImpl.validateMeasure().
|
inline |
Definition at line 1790 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.config(), org.apache.calcite.sql.validate.SqlValidatorImpl.handleUnresolvedFunction(), org.apache.calcite.sql.validate.SqlValidatorImpl.newValidationError(), and run_benchmark_import.type.
|
inline |
Definition at line 1756 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.deriveTypeImpl(), org.apache.calcite.sql.validate.SqlValidatorImpl.getNamespace(), org.apache.calcite.sql.validate.SqlValidatorImpl.setValidatedNodeType(), and run_benchmark_import.type.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.addToSelectList(), org.apache.calcite.sql.validate.SqlValidatorImpl.expandOrderExpr(), org.apache.calcite.sql.validate.SqlValidatorImpl.expandSelectItem(), org.apache.calcite.sql.validate.SqlValidatorImpl.getTableConstructorRowType(), org.apache.calcite.sql.validate.SqlValidatorImpl.handleScalarSubQuery(), org.apache.calcite.sql.validate.SqlValidatorImpl.inferUnknownTypes(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateDefinitions(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateGroupItem(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateHavingClause(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateMatchRecognize(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateMeasure(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateQuery(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateScopedExpression(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateSnapshot(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateValues(), and org.apache.calcite.sql.validate.SqlValidatorImpl.validateWhereOrOn().
|
inlinepackage |
Derives the type of a node, never null.
Definition at line 1782 of file SqlValidatorImpl.java.
References run_benchmark_import.type.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.deriveType(), and org.apache.calcite.sql.validate.SqlValidatorImpl.expandSelectItem().
|
inline |
Definition at line 5524 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.setOriginal().
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.validateDefinitions(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateJoin(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateMatchRecognize(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateMeasure(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateOrderList(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateUnnest(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateWhereClause(), and org.apache.calcite.sql.validate.SqlValidatorImpl.validateWindowClause().
|
inlinestaticprivate |
Definition at line 543 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.config, org.apache.calcite.sql.validate.SqlValidatorImpl.expandExprFromJoin(), and org.apache.calcite.sql.validate.SqlValidatorImpl.validateQualifiedCommonColumn().
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.SelectExpander.visit(), and org.apache.calcite.sql.validate.SqlValidatorImpl.ExtendedExpander.visit().
|
inlinestaticprivate |
Definition at line 476 of file SqlValidatorImpl.java.
References Fragmenter_Namespace.indexOf(), and setup.name.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.expandCommonColumn().
|
inline |
Definition at line 5533 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.setOriginal().
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.validateGroupClause(), and org.apache.calcite.sql.validate.SqlValidatorImpl.validateHavingClause().
|
inline |
Definition at line 4009 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.deriveType(), org.apache.calcite.sql.validate.SqlValidatorImpl.getOrderScope(), org.apache.calcite.sql.validate.SqlValidatorImpl.inferUnknownTypes(), org.apache.calcite.sql.validate.SqlValidatorImpl.setValidatedNodeType(), run_benchmark_import.type, and org.apache.calcite.sql.validate.SqlValidatorImpl.unknownType.
|
inline |
Definition at line 5514 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.setOriginal().
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.expandSelectItem().
|
inlineprivate |
If selectItem
is "*" or "TABLE.*", expands it and returns true; otherwise writes the unexpanded item.
selectItem | Select-list item |
select | Containing select clause |
selectItems | List that expanded items are written to |
aliases | Set of aliases |
fields | List of field names and types, in alias order |
includeSystemVars | If true include system vars in lists |
Definition at line 424 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.alias(), org.apache.calcite.sql.validate.SqlValidatorImpl.deriveAlias(), org.apache.calcite.sql.validate.SqlValidatorImpl.deriveType(), org.apache.calcite.sql.validate.SqlValidatorImpl.deriveTypeImpl(), org.apache.calcite.sql.validate.SqlValidatorImpl.expandSelectExpr(), org.apache.calcite.sql.validate.SqlValidatorImpl.expandStar(), org.apache.calcite.sql.validate.SqlValidatorImpl.getSelectScope(), org.apache.calcite.sql.validate.SqlValidatorImpl.getWhereScope(), org.apache.calcite.sql.validate.SqlValidatorImpl.inferUnknownTypes(), org.apache.calcite.sql.validate.SqlValidatorImpl.setValidatedNodeType(), and run_benchmark_import.type.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.expandStar(), and org.apache.calcite.sql.validate.SqlValidatorImpl.validateSelectList().
|
inline |
Definition at line 350 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.expandSelectItem(), org.apache.calcite.sql.validate.SqlValidatorImpl.getRawSelectScope(), org.apache.calcite.sql.validate.SqlValidatorImpl.getValidatedNodeTypeIfKnown(), and org.apache.calcite.sql.validate.SqlValidatorImpl.unknownType.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.addOrExpandField(), org.apache.calcite.sql.validate.SqlValidatorImpl.expandSelectItem(), and org.apache.calcite.sql.validate.SqlValidatorImpl.OrderExpressionExpander.nthSelectItem().
|
inlineprivate |
Definition at line 592 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.addOrExpandField(), org.apache.calcite.sql.validate.SqlValidatorImpl.addToSelectList(), field(), org.apache.calcite.sql.validate.SqlValidatorImpl.getNamespace(), org.apache.calcite.sql.validate.SqlValidatorImpl.isRolledUpColumn(), org.apache.calcite.sql.validate.SqlValidatorImpl.newValidationError(), run_benchmark_import.type, and org.apache.calcite.sql.validate.SqlValidatorImpl.typeFactory.
|
inlinestaticprivate |
Definition at line 987 of file SqlValidatorImpl.java.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.lookupNameCompletionHints().
|
inlinestaticprivate |
Definition at line 971 of file SqlValidatorImpl.java.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.lookupNameCompletionHints().
|
inlineprivate |
Definition at line 3586 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.makeNullaryCall().
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.isRolledUpColumn(), and org.apache.calcite.sql.validate.SqlValidatorImpl.isRolledUpColumnAllowedInAgg().
|
inlineprivate |
If there is at least one call to an aggregate function, returns the first.
Definition at line 2942 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.getRawSelectScope().
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.getAggregate().
|
inlineprotected |
Returns the parse tree node (GROUP BY, HAVING, or an aggregate function call) that causes
to be an aggregate query, or null if it is not an aggregate query.
The node is useful context for error messages, but you cannot assume that the node is the only aggregate function.
Definition at line 2928 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.getAgg().
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.isAggregate(), and org.apache.calcite.sql.validate.SqlValidatorImpl.validateModality().
|
inline |
Definition at line 334 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.catalogReader.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.getValidatedNodeTypeIfKnown(), and org.apache.calcite.sql.validate.SqlValidatorImpl.lookupFromHints().
|
inline |
Definition at line 330 of file SqlValidatorImpl.java.
|
inline |
Definition at line 1108 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.Clause.CURSOR.
|
inline |
Definition at line 1104 of file SqlValidatorImpl.java.
|
inlineprivate |
Definition at line 5564 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.getRawSelectScope(), and setup.name.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.getFieldOrigins().
|
inline |
Definition at line 5548 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.getFieldOrigin(), and org.apache.calcite.sql.validate.SqlValidatorImpl.getValidatedNodeType().
|
inline |
Definition at line 1138 of file SqlValidatorImpl.java.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.lookupSelectHints(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateSelect(), and org.apache.calcite.sql.validate.SqlValidatorImpl.validateWindowClause().
|
inline |
Definition at line 1133 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.Clause.GROUP_BY.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.checkRollUpInGroupBy(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateGroupByItem(), and org.apache.calcite.sql.validate.SqlValidatorImpl.validateGroupClause().
|
inline |
Definition at line 1128 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.Clause.SELECT.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.validateSelect().
|
inlineprivate |
Definition at line 1434 of file SqlValidatorImpl.java.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.performUnconditionalRewrites().
|
inline |
Definition at line 1150 of file SqlValidatorImpl.java.
|
inlineprotected |
Definition at line 4625 of file SqlValidatorImpl.java.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.getLogicalTargetRowType(), and org.apache.calcite.sql.validate.SqlValidatorImpl.validateInsert().
|
inlineprotected |
Definition at line 4601 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.getLogicalSourceRowType(), org.apache.calcite.sql.validate.SqlValidatorImpl.getNamespace(), and org.apache.calcite.sql.validate.SqlValidatorImpl.validateNamespace().
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.validateInsert().
|
inline |
Definition at line 1146 of file SqlValidatorImpl.java.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.validateMatchRecognize().
|
inlineprivate |
Definition at line 1158 of file SqlValidatorImpl.java.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.checkRollUpInUsing(), org.apache.calcite.sql.validate.SqlValidatorImpl.deriveType(), org.apache.calcite.sql.validate.SqlValidatorImpl.expandStar(), org.apache.calcite.sql.validate.SqlValidatorImpl.getLogicalTargetRowType(), org.apache.calcite.sql.validate.SqlValidatorImpl.getNamespace(), org.apache.calcite.sql.validate.SqlValidatorImpl.getValidatedNodeTypeIfKnown(), org.apache.calcite.sql.validate.SqlValidatorImpl.lookupFromHints(), org.apache.calcite.sql.validate.SqlValidatorImpl.lookupHints(), org.apache.calcite.sql.validate.SqlValidatorImpl.OrderExpressionExpander.OrderExpressionExpander(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateDelete(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateFrom(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateInsert(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateJoin(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateMatchRecognize(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateMerge(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateQuery(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateSelect(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateUpdate(), and org.apache.calcite.sql.validate.SqlValidatorImpl.OrderExpressionExpander.visit().
|
inlineprivate |
Definition at line 1190 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.getNamespace().
|
inline |
Definition at line 1203 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.getNamespace().
|
inlineprivate |
Locates the n'th expression in an INSERT or UPDATE query.
query | Query |
ordinal | Ordinal of expression |
sourceCount | Number of expressions |
Definition at line 4723 of file SqlValidatorImpl.java.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.checkTypeAssignment().
|
inline |
Definition at line 338 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.opTab.
|
inline |
Definition at line 1142 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.Clause.ORDER.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.checkRollUpInOrderBy(), org.apache.calcite.sql.validate.SqlValidatorImpl.expandOrderExpr(), org.apache.calcite.sql.validate.SqlValidatorImpl.OrderExpressionExpander.OrderExpressionExpander(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateOrderItem(), and org.apache.calcite.sql.validate.SqlValidatorImpl.validateOrderList().
|
inline |
Definition at line 5078 of file SqlValidatorImpl.java.
|
inline |
Definition at line 1154 of file SqlValidatorImpl.java.
|
inline |
Definition at line 5597 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.getValidatedNodeType(), and run_benchmark_import.type.
|
inline |
Definition at line 405 of file SqlValidatorImpl.java.
|
inline |
Definition at line 1120 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.getSelectScope().
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.expandStar(), org.apache.calcite.sql.validate.SqlValidatorImpl.getAgg(), org.apache.calcite.sql.validate.SqlValidatorImpl.getFieldOrigin(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateModality(), and org.apache.calcite.sql.validate.SqlValidatorImpl.validateSelectList().
|
inline |
Definition at line 1116 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.Clause.SELECT.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.checkRollUpInSelectList(), org.apache.calcite.sql.validate.SqlValidatorImpl.checkRollUpInWindowDecl(), org.apache.calcite.sql.validate.SqlValidatorImpl.expandSelectItem(), org.apache.calcite.sql.validate.SqlValidatorImpl.getRawSelectScope(), org.apache.calcite.sql.validate.SqlValidatorImpl.registerFrom(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateGroupClause(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateHavingClause(), and org.apache.calcite.sql.validate.SqlValidatorImpl.validateSelectList().
|
inlineprotected |
Allows a subclass to provide information about how to convert an UPDATE into a MERGE via self-join. If this method returns null, then no such conversion takes place. Otherwise, this method should return a suitable unique identifier expression for the given table.
table | identifier for table being updated |
alias | alias to use for qualifying columns in expression, or null for unqualified references; if this is equal to { UPDATE_SRC_ALIAS}, then column references have been anonymized to "SYS$ANONx", where x is the 1-based column number. |
Definition at line 1595 of file SqlValidatorImpl.java.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.performUnconditionalRewrites(), and org.apache.calcite.sql.validate.SqlValidatorImpl.rewriteUpdateToMerge().
|
inlinepackage |
Returns null if there is no common type. E.g. if the rows have a different number of columns.
Definition at line 1655 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.alias(), org.apache.calcite.sql.validate.SqlValidatorImpl.deriveAlias(), org.apache.calcite.sql.validate.SqlValidatorImpl.deriveType(), report.rows, and run_benchmark_import.type.
|
inline |
Definition at line 3910 of file SqlValidatorImpl.java.
|
inline |
Definition at line 342 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.typeFactory.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.DeriveTypeVisitor.visit().
|
inline |
Definition at line 346 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.unknownType.
|
inline |
Definition at line 1685 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.getValidatedNodeTypeIfKnown(), and run_benchmark_import.type.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.getFieldOrigins(), org.apache.calcite.sql.validate.SqlValidatorImpl.getParameterRowType(), org.apache.calcite.sql.validate.SqlValidatorImpl.getValidatedNodeTypeIfKnown(), org.apache.calcite.sql.validate.SqlValidatorImpl.Permute.Permute(), org.apache.calcite.sql.validate.SqlValidatorImpl.usingNames(), org.apache.calcite.sql.validate.SqlValidatorImpl.validate(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateUpdate(), and org.apache.calcite.sql.validate.SqlValidatorImpl.validateWithItem().
|
inline |
Definition at line 1694 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.getCatalogReader(), org.apache.calcite.sql.validate.SqlValidatorImpl.getNamespace(), org.apache.calcite.sql.validate.SqlValidatorImpl.getValidatedNodeType(), and run_benchmark_import.type.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.expandStar(), and org.apache.calcite.sql.validate.SqlValidatorImpl.getValidatedNodeType().
|
inline |
Definition at line 5028 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.validationErrorFunction.
|
inline |
Definition at line 1112 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.Clause.WHERE.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.expandSelectItem(), org.apache.calcite.sql.validate.SqlValidatorImpl.handleScalarSubQuery(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateSelect(), and org.apache.calcite.sql.validate.SqlValidatorImpl.validateWhereClause().
|
inlineprotected |
Definition at line 5039 of file SqlValidatorImpl.java.
References setup.name, and org.apache.calcite.sql.validate.SqlValidatorImpl.newValidationError().
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.resolveWindow(), and org.apache.calcite.sql.validate.SqlValidatorImpl.validateWindow().
|
inlineprivate |
Definition at line 3565 of file SqlValidatorImpl.java.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.checkRollUp().
|
inline |
Definition at line 3905 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.scopes.
|
inlineprivate |
Definition at line 1225 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.setValidatedNodeType(), and org.apache.calcite.sql.validate.SqlValidatorImpl.typeFactory.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.performUnconditionalRewrites(), and org.apache.calcite.sql.validate.SqlValidatorImpl.validateSelect().
|
inlineprivate |
Processes SubQuery found in Select list. Checks that is actually Scalar sub-query and makes proper entries in each of the 3 lists used to create the final rowType entry.
parentSelect | base SqlSelect item |
selectItem | child SqlSelect from select list |
expandedSelectItems | Select items after processing |
aliasList | built from user or system values |
fieldList | Built up entries for each select list entry |
Definition at line 4270 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.alias(), org.apache.calcite.sql.validate.SqlValidatorImpl.deriveAlias(), org.apache.calcite.sql.validate.SqlValidatorImpl.deriveType(), org.apache.calcite.sql.validate.SqlValidatorImpl.getWhereScope(), org.apache.calcite.sql.validate.SqlValidatorImpl.newValidationError(), org.apache.calcite.sql.validate.SqlValidatorImpl.setValidatedNodeType(), and run_benchmark_import.type.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.validateSelectList().
|
inline |
Definition at line 1843 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.catalogReader, getMin(), and org.apache.calcite.sql.validate.SqlValidatorImpl.newValidationError().
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.deriveConstructorType(), and org.apache.calcite.sql.validate.SqlValidatorImpl.validateCall().
|
inlineprivate |
Returns whether the prefix is sorted.
Definition at line 3778 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.isSortCompatible().
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.validateModality().
|
inlineprotected |
Definition at line 1872 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.booleanType, org.apache.calcite.sql.validate.SqlValidatorImpl.config(), org.apache.calcite.sql.validate.SqlValidatorImpl.deriveType(), org.apache.calcite.sql.validate.SqlValidatorImpl.newValidationError(), org.apache.calcite.sql.validate.SqlValidatorImpl.setValidatedNodeType(), run_benchmark_import.type, and org.apache.calcite.sql.validate.SqlValidatorImpl.unknownType.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.expandOrderExpr(), org.apache.calcite.sql.validate.SqlValidatorImpl.expandSelectItem(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateDefinitions(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateGroupClause(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateHavingClause(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateMeasure(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateSelectList(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateValues(), and org.apache.calcite.sql.validate.SqlValidatorImpl.validateWhereOrOn().
|
inline |
Definition at line 2894 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.getAggregate(), org.apache.calcite.sql.validate.SqlValidatorImpl.isNestedAggregateWindow(), org.apache.calcite.sql.validate.SqlValidatorImpl.isOverAggregateWindow(), and org.apache.calcite.sql.validate.SqlValidatorImpl.overFinder.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.performUnconditionalRewrites(), org.apache.calcite.sql.validate.SqlValidatorImpl.registerQuery(), and org.apache.calcite.sql.validate.SqlValidatorImpl.ExtendedExpander.visit().
|
inline |
Definition at line 2954 of file SqlValidatorImpl.java.
|
inlinestaticprivate |
Definition at line 5643 of file SqlValidatorImpl.java.
References MIN.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.checkRollUp(), org.apache.calcite.sql.validate.SqlValidatorImpl.isSingleVarRequired(), org.apache.calcite.sql.validate.SqlValidatorImpl.NavigationReplacer.visit(), and org.apache.calcite.sql.validate.SqlValidatorImpl.PatternValidator.visit().
|
inlinestaticprivate |
Definition at line 5639 of file SqlValidatorImpl.java.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.isSingleVarRequired(), org.apache.calcite.sql.validate.SqlValidatorImpl.NavigationExpander.visit(), org.apache.calcite.sql.validate.SqlValidatorImpl.NavigationReplacer.visit(), and org.apache.calcite.sql.validate.SqlValidatorImpl.PatternValidator.visit().
|
inlineprotected |
Definition at line 2911 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.aggFinder, org.apache.calcite.sql.validate.SqlValidatorImpl.catalogReader, and org.apache.calcite.sql.validate.SqlValidatorImpl.opTab.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.isAggregate().
|
inlineprotected |
Definition at line 2918 of file SqlValidatorImpl.java.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.isAggregate().
|
inlinestaticprivate |
Definition at line 5635 of file SqlValidatorImpl.java.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.isSingleVarRequired(), org.apache.calcite.sql.validate.SqlValidatorImpl.NavigationExpander.visit(), and org.apache.calcite.sql.validate.SqlValidatorImpl.PatternValidator.visit().
|
inlineprivate |
Definition at line 3625 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.findTableColumnPair().
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.checkRollUp(), and org.apache.calcite.sql.validate.SqlValidatorImpl.expandStar().
|
inlineprivate |
Definition at line 3603 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.findTableColumnPair().
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.checkRollUp().
|
inlineprivate |
Definition at line 4591 of file SqlValidatorImpl.java.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.isValuesWithDefault().
|
inlinestaticprivate |
Definition at line 5649 of file SqlValidatorImpl.java.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.navigationInMeasure(), org.apache.calcite.sql.validate.SqlValidatorImpl.NavigationReplacer.visit(), and org.apache.calcite.sql.validate.SqlValidatorImpl.PatternValidator.visit().
|
inlinestaticprivate |
Definition at line 5653 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.isAggregation(), org.apache.calcite.sql.validate.SqlValidatorImpl.isLogicalNavigation(), and org.apache.calcite.sql.validate.SqlValidatorImpl.isPhysicalNavigation().
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.PatternValidator.visit().
|
inlineprivate |
Definition at line 3782 of file SqlValidatorImpl.java.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.hasSortedPrefix().
|
inline |
Definition at line 5544 of file SqlValidatorImpl.java.
|
inlineprivate |
Returns whether a query uses
to populate a given column.
Definition at line 4578 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.isRowWithDefault().
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.checkFieldCount().
|
inlinepackage |
Definition at line 5091 of file SqlValidatorImpl.java.
References field(), and setup.name.
|
inlineprivate |
Definition at line 828 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.getCatalogReader(), org.apache.calcite.sql.validate.SqlValidatorImpl.getNamespace(), org.apache.calcite.sql.validate.SqlValidatorImpl.lookupJoinHints(), and org.apache.calcite.sql.validate.SqlValidatorImpl.lookupSelectHints().
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.lookupJoinHints(), and org.apache.calcite.sql.validate.SqlValidatorImpl.lookupSelectHints().
|
inline |
Definition at line 760 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.getNamespace(), org.apache.calcite.sql.validate.SqlValidatorImpl.lookupSelectHints(), org.apache.calcite.sql.validate.SqlValidatorImpl.performUnconditionalRewrites(), and org.apache.calcite.sql.validate.SqlValidatorImpl.registerQuery().
|
inlineprivate |
Definition at line 868 of file SqlValidatorImpl.java.
References join(), and org.apache.calcite.sql.validate.SqlValidatorImpl.lookupFromHints().
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.lookupFromHints().
|
inline |
Populates a list of all the valid alternatives for an identifier.
scope | Validation scope |
names | Components of the identifier |
pos | position |
hintList | a list of valid options |
Definition at line 905 of file SqlValidatorImpl.java.
References field(), org.apache.calcite.sql.validate.SqlValidatorImpl.findAllValidFunctionNames(), org.apache.calcite.sql.validate.SqlValidatorImpl.findAllValidUdfNames(), and setup.name.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.lookupSelectHints().
|
inline |
Definition at line 782 of file SqlValidatorImpl.java.
|
inlinepackage |
Looks up completion hints for a syntactically correct select SQL that has been parsed into an expression tree.
select | the Select node of the parsed expression tree |
pos | indicates the position in the sql statement we want to get completion hints for |
hintList | list of SqlMoniker (sql identifiers) that can fill in at the indicated position |
Definition at line 803 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.getFromScope(), org.apache.calcite.sql.validate.SqlValidatorImpl.IdInfo.id, org.apache.calcite.sql.validate.SqlValidatorImpl.lookupFromHints(), org.apache.calcite.sql.validate.SqlValidatorImpl.lookupNameCompletionHints(), and org.apache.calcite.sql.validate.SqlValidatorImpl.IdInfo.scope.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.lookupFromHints(), org.apache.calcite.sql.validate.SqlValidatorImpl.lookupHints(), and org.apache.calcite.sql.validate.SqlValidatorImpl.lookupSelectHints().
|
inlineprivate |
Definition at line 818 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.lookupSelectHints().
|
inline |
Definition at line 1737 of file SqlValidatorImpl.java.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.findTableColumnPair(), and org.apache.calcite.sql.validate.SqlValidatorImpl.DeriveTypeVisitor.visit().
|
inlineprivate |
Definition at line 714 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.typeFactory.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.Permute.permute().
|
inlineprivate |
Checks that all pattern variables within a function are the same, and canonizes expressions such as
to
.
Definition at line 5391 of file SqlValidatorImpl.java.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.validateDefinitions().
|
inlineprivate |
Definition at line 5318 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.isRunningOrFinal().
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.validateMeasure().
|
inline |
Definition at line 5032 of file SqlValidatorImpl.java.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.ValidationErrorFunction.apply(), org.apache.calcite.sql.validate.SqlValidatorImpl.checkFieldCount(), org.apache.calcite.sql.validate.SqlValidatorImpl.checkRollUp(), org.apache.calcite.sql.validate.SqlValidatorImpl.checkRollUpInUsing(), org.apache.calcite.sql.validate.SqlValidatorImpl.checkTypeAssignment(), org.apache.calcite.sql.validate.SqlValidatorImpl.createTargetRowType(), org.apache.calcite.sql.validate.SqlValidatorImpl.deriveConstructorType(), org.apache.calcite.sql.validate.SqlValidatorImpl.expandStar(), org.apache.calcite.sql.validate.SqlValidatorImpl.ValidationError.get(), org.apache.calcite.sql.validate.SqlValidatorImpl.getWindowByName(), org.apache.calcite.sql.validate.SqlValidatorImpl.handleScalarSubQuery(), org.apache.calcite.sql.validate.SqlValidatorImpl.handleUnresolvedFunction(), org.apache.calcite.sql.validate.SqlValidatorImpl.inferUnknownTypes(), org.apache.calcite.sql.validate.SqlValidatorImpl.registerQuery(), org.apache.calcite.sql.validate.SqlValidatorImpl.resolveWindow(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateAccess(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateAggregateParams(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateCall(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateDefinitions(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateExpr(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateGroupClause(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateHavingClause(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateIntervalQualifier(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateJoin(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateLiteral(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateLiteralAsDouble(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateMatchRecognize(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateModality(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateNoAggs(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateOrderList(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateSelect(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateSequenceValue(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateSnapshot(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateUsingCol(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateValues(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateWhereOrOn(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateWindowClause(), org.apache.calcite.sql.validate.SqlValidatorImpl.validateWithItem(), org.apache.calcite.sql.validate.SqlValidatorImpl.DeriveTypeVisitor.visit(), org.apache.calcite.sql.validate.SqlValidatorImpl.OrderExpressionExpander.visit(), and org.apache.calcite.sql.validate.SqlValidatorImpl.PatternValidator.visit().
|
inlineprotected |
Performs expression rewrites which are always used unconditionally. These rewrites massage the expression tree into a standard form so that the rest of the validation logic can be simpler.
node | expression to be rewritten |
underFrom | whether node appears directly under a FROM clause |
Definition at line 1245 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.config(), org.apache.calcite.sql.validate.SqlValidatorImpl.createSourceSelectForDelete(), org.apache.calcite.sql.validate.SqlValidatorImpl.createSourceSelectForUpdate(), org.apache.calcite.sql.validate.SqlValidatorImpl.getInnerSelect(), org.apache.calcite.sql.validate.SqlValidatorImpl.getSelfJoinExprForUpdate(), org.apache.calcite.sql.validate.SqlValidatorImpl.handleOffsetFetch(), org.apache.calcite.sql.validate.SqlValidatorImpl.isAggregate(), org.apache.calcite.sql.validate.SqlValidatorImpl.rewriteMerge(), org.apache.calcite.sql.validate.SqlValidatorImpl.rewriteUpdateToMerge(), org.apache.calcite.sql.validate.SqlValidatorImpl.UPDATE_SRC_ALIAS, and org.apache.calcite.sql.validate.SqlValidatorImpl.validatingSqlMerge.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.lookupHints(), and org.apache.calcite.sql.validate.SqlValidatorImpl.validateScopedExpression().
|
inline |
Definition at line 400 of file SqlValidatorImpl.java.
|
inline |
Definition at line 394 of file SqlValidatorImpl.java.
|
inlineprivate |
Registers scopes and namespaces implied a relational expression in the FROM clause.
and
are often the same. They differ when the namespace are not visible within the parent. (Example needed.)
Likewise,
and
are often the same.
is the topmost node within the FROM clause, from which any decorations like an alias (AS alias
) or a table sample clause are stripped away to get
. Both are recorded in the namespace.
parentScope | Parent scope which this scope turns to in order to resolve objects |
usingScope | Scope whose child list this scope should add itself to |
register | Whether to register this scope as a child of usingScope
|
node | Node which namespace is based on |
enclosingNode | Outermost node for namespace, including decorations such as alias and sample clause |
alias | Alias |
extendList | Definitions of extended columns |
forceNullable | Whether to force the type of namespace to be nullable because it is in an outer join |
lateral | Whether LATERAL is specified, so that items to the left of this in the JOIN tree are visible in the scope |
Definition at line 2096 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.alias(), org.apache.calcite.sql.validate.SqlValidatorImpl.config(), org.apache.calcite.sql.validate.SqlValidatorImpl.deriveAlias(), org.apache.calcite.sql.validate.SqlValidatorImpl.getSelectScope(), join(), LEFT, setup.name, org.apache.calcite.sql.validate.SqlValidatorImpl.nextGeneratedId, org.apache.calcite.sql.validate.SqlValidatorImpl.registerMatchRecognize(), org.apache.calcite.sql.validate.SqlValidatorImpl.registerNamespace(), org.apache.calcite.sql.validate.SqlValidatorImpl.registerQuery(), org.apache.calcite.sql.validate.SqlValidatorImpl.registerSubQueries(), org.apache.calcite.sql.validate.SqlValidatorImpl.shouldAllowOverRelation(), org.apache.calcite.sql.validate.SqlValidatorImpl.tableScope, toString(), and UNION.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.registerMatchRecognize(), and org.apache.calcite.sql.validate.SqlValidatorImpl.registerQuery().
|
inlineprivate |
Definition at line 2012 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.createMatchRecognizeNameSpace(), org.apache.calcite.sql.validate.SqlValidatorImpl.registerFrom(), and org.apache.calcite.sql.validate.SqlValidatorImpl.registerNamespace().
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.registerFrom().
|
inlineprotected |
Registers a new namespace, and adds it as a child of its parent scope. Derived class can override this method to tinker with namespaces as they are created.
usingScope | Parent scope (which will want to look for things in this namespace) |
alias | Alias by which parent will refer to this namespace |
ns | Namespace |
forceNullable | Whether to force the type of namespace to be nullable |
Definition at line 2054 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.alias().
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.declareCursor(), org.apache.calcite.sql.validate.SqlValidatorImpl.registerFrom(), org.apache.calcite.sql.validate.SqlValidatorImpl.registerMatchRecognize(), org.apache.calcite.sql.validate.SqlValidatorImpl.registerQuery(), org.apache.calcite.sql.validate.SqlValidatorImpl.registerSetop(), and org.apache.calcite.sql.validate.SqlValidatorImpl.registerWith().
|
inlineprivate |
Registers any sub-queries inside a given call operand, and converts the operand to a scalar sub-query if the operator requires it.
parentScope | Parent scope |
call | Call |
operandOrdinal | Ordinal of operand within call |
Definition at line 3009 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.registerSubQueries().
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.registerQuery(), and org.apache.calcite.sql.validate.SqlValidatorImpl.registerSubQueries().
|
inlineprivate |
Registers a query in a parent scope.
parentScope | Parent scope which this scope turns to in order to resolve objects |
usingScope | Scope whose child list this scope should add itself to |
node | Query node |
alias | Name of this query within its parent. Must be specified if usingScope != null |
Definition at line 2494 of file SqlValidatorImpl.java.
Referenced by org.apache.calcite.sql.validate.SqlValidatorImpl.lookupHints(), org.apache.calcite.sql.validate.SqlValidatorImpl.registerFrom(), org.apache.calcite.sql.validate.SqlValidatorImpl.registerQuery(), org.apache.calcite.sql.validate.SqlValidatorImpl.registerSetop(), org.apache.calcite.sql.validate.SqlValidatorImpl.registerSubQueries(), org.apache.calcite.sql.validate.SqlValidatorImpl.registerWith(), and org.apache.calcite.sql.validate.SqlValidatorImpl.validateScopedExpression().
|
inlineprivate |
Registers a query in a parent scope.
parentScope | Parent scope which this scope turns to in order to resolve objects |
usingScope | Scope whose child list this scope should add itself to |
node | Query node |
alias | Name of this query within its parent. Must be specified if usingScope != null |
checkUpdate | if true, validate that the update feature is supported if validating the update statement |
Definition at line 2524 of file SqlValidatorImpl.java.
References org.apache.calcite.sql.validate.SqlValidatorImpl.clauseScopes, org.apache.calcite.sql.validate.SqlValidatorImpl.createSelectNamespace(), org.apache.calcite.sql.validate.SqlValidatorImpl.deriveAlias(), org.apache.calcite.sql.validate.SqlValidatorImpl.Clause.GROUP_BY, org.apache.calcite.sql.validate.SqlValidatorImpl.isAggregate(), org.apache.calcite.sql.validate.SqlValidatorImpl.newValidationError(), org.apache.calcite.sql.validate.SqlValidatorImpl.nextGeneratedId, org.apache.calcite.sql.validate.SqlValidatorImpl.Clause.ORDER, org.apache.calcite.sql.validate.SqlValidatorImpl.registerFrom(), org.apache.calcite.sql.validate.SqlValidatorImpl.registerNamespace(), org.apache.calcite.sql.validate.SqlValidatorImpl.registerOperandSubQueries(), org.apache.calcite.sql.validate.SqlValidatorImpl.registerQuery(), org.apache.calcite.sql.validate.SqlValidatorImpl.registerSetop(), org.apache.calcite.sql.validate.SqlValidatorImpl.registerSubQueries(), org.apache.calcite.sql.validate.SqlValidatorImpl.registerWith(), org.apache.calcite.sql.validate.SqlValidatorImpl.Clause.SELECT, UNION, org.apache.calcite.sql.validate.SqlValidatorImpl.validateFeature(), and org.apache.calcite.sql.validate.SqlValidatorImpl.Clause.WHERE.