Uses of Class
org.apache.calcite.sql.SqlCall
-
Packages that use SqlCall Package Description org.apache.calcite.adapter.druid Query provider based on a Druid database.org.apache.calcite.rel.rel2sql Translates a relational expression to SQL parse tree.org.apache.calcite.schema Schema SPI.org.apache.calcite.schema.impl Utilities to help implement Calcite's SPIs.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.ddl Parse tree for SQL DDL statements.org.apache.calcite.sql.dialect SQL unparsers for JDBC dialects.org.apache.calcite.sql.fun Defines the set of standard SQL row-level functions and operators.org.apache.calcite.sql.parser Provides a SQL parser.org.apache.calcite.sql.type SQL type system.org.apache.calcite.sql.util Utility classes for the SQL object model, parsing, and validation.org.apache.calcite.sql.validate SQL validation.org.apache.calcite.sql2rel Translates a SQL parse tree to relational expression.org.apache.calcite.util Provides utility classes. -
-
Uses of SqlCall in org.apache.calcite.adapter.druid
Methods in org.apache.calcite.adapter.druid with parameters of type SqlCall Modifier and Type Method Description private boolean
DruidTable. isCountDistinct(SqlCall call)
boolean
DruidTable. rolledUpColumnValidInsideAgg(java.lang.String column, SqlCall call, SqlNode parent, CalciteConnectionConfig config)
-
Uses of SqlCall in org.apache.calcite.rel.rel2sql
Methods in org.apache.calcite.rel.rel2sql that return SqlCall Modifier and Type Method Description private SqlCall
RelToSqlConverter. as(SqlNode e, java.lang.String alias)
private SqlCall
SqlImplementor.Context. createOverCall(SqlAggFunction op, java.util.List<SqlNode> operands, SqlWindow window)
private SqlCall
SqlImplementor.Context. toSql(RexProgram program, RexOver rexOver)
Methods in org.apache.calcite.rel.rel2sql with parameters of type SqlCall Modifier and Type Method Description private SqlNode
SqlImplementor.Context. withOrder(SqlCall call, SqlNodeList orderList)
Wraps a call in aSqlKind.WITHIN_GROUP
call, iforderList
is non-empty. -
Uses of SqlCall in org.apache.calcite.schema
Methods in org.apache.calcite.schema with parameters of type SqlCall Modifier and Type Method Description boolean
Table. rolledUpColumnValidInsideAgg(java.lang.String column, SqlCall call, SqlNode parent, CalciteConnectionConfig config)
Determines whether the given rolled up column can be used inside the given aggregate function. -
Uses of SqlCall in org.apache.calcite.schema.impl
Methods in org.apache.calcite.schema.impl with parameters of type SqlCall Modifier and Type Method Description boolean
AbstractTable. rolledUpColumnValidInsideAgg(java.lang.String column, SqlCall call, SqlNode parent, CalciteConnectionConfig config)
-
Uses of SqlCall in org.apache.calcite.sql
Subclasses of SqlCall in org.apache.calcite.sql Modifier and Type Class Description class
SqlAlter
Base class for an ALTER statements parse tree nodes.class
SqlBasicCall
Implementation ofSqlCall
that keeps its operands in an array.class
SqlCreate
Base class for an CREATE statements parse tree nodes.class
SqlDdl
Base class for CREATE, DROP and other DDL statements.class
SqlDelete
ASqlDelete
is a node of a parse tree which represents a DELETE statement.class
SqlDescribeSchema
ASqlDescribeSchema
is a node of a parse tree that represents aDESCRIBE SCHEMA
statement.class
SqlDescribeTable
ASqlDescribeTable
is a node of a parse tree that represents aDESCRIBE TABLE
statement.class
SqlDrop
Base class for an DROP statements parse tree nodes.class
SqlExplain
ASqlExplain
is a node of a parse tree which represents an EXPLAIN PLAN statement.class
SqlInsert
ASqlInsert
is a node of a parse tree which represents an INSERT statement.class
SqlJoin
Parse tree node representing aJOIN
clause.class
SqlMatchRecognize
SqlNode for MATCH_RECOGNIZE clause.class
SqlMerge
ASqlMerge
is a node of a parse tree which represents a MERGE statement.class
SqlOrderBy
Parse tree node that represents anORDER BY
on a query other than aSELECT
(e.g.class
SqlSelect
ASqlSelect
is a node of a parse tree which represents a select statement.class
SqlSetOption
SQL parse tree node to representSET
andRESET
statements, optionally preceded byALTER SYSTEM
orALTER SESSION
.class
SqlUpdate
ASqlUpdate
is a node of a parse tree which represents an UPDATE statement.class
SqlWindow
SQL window specification.class
SqlWith
The WITH clause of a query.class
SqlWithItem
An item in a WITH clause of a query.Fields in org.apache.calcite.sql declared as SqlCall Modifier and Type Field Description private SqlCall
SqlCallBinding. call
private static SqlCall
SqlCallBinding. DEFAULT_CALL
private SqlCall
SqlJdbcFunctionCall. lookupCall
private SqlCall
SqlWindow. windowCall
Methods in org.apache.calcite.sql that return SqlCall Modifier and Type Method Description SqlCall
SqlJdbcFunctionCall. createCall(SqlLiteral functionQualifier, SqlParserPos pos, SqlNode... operands)
SqlCall
SqlJdbcFunctionCall.MakeCall. createCall(SqlParserPos pos, SqlNode... operands)
Creates and return aSqlCall
.SqlCall
SqlJdbcFunctionCall.PermutingMakeCall. createCall(SqlParserPos pos, SqlNode... operands)
SqlCall
SqlJdbcFunctionCall.SimpleMakeCall. createCall(SqlParserPos pos, SqlNode... operands)
SqlCall
SqlJoin.SqlJoinOperator. createCall(SqlLiteral functionQualifier, SqlParserPos pos, SqlNode... operands)
SqlCall
SqlMatchRecognize.SqlMatchRecognizeOperator. createCall(SqlLiteral functionQualifier, SqlParserPos pos, SqlNode... operands)
SqlCall
SqlOperator. createCall(SqlParserPos pos, java.util.List<? extends SqlNode> operandList)
Creates a call to this operand with a list of operands.SqlCall
SqlOperator. createCall(SqlParserPos pos, SqlNode... operands)
Creates a call to this operand with an array of operands.SqlCall
SqlOperator. createCall(SqlLiteral functionQualifier, SqlParserPos pos, SqlNode... operands)
Creates a call to this operand with an array of operands.SqlCall
SqlOperator. createCall(SqlNodeList nodeList)
Creates a call to this operand with a list of operands contained in aSqlNodeList
.SqlCall
SqlSelectOperator. createCall(SqlLiteral functionQualifier, SqlParserPos pos, SqlNode... operands)
SqlCall
SqlWindow.SqlWindowOperator. createCall(SqlLiteral functionQualifier, SqlParserPos pos, SqlNode... operands)
SqlCall
SqlWith.SqlWithOperator. createCall(SqlLiteral functionQualifier, SqlParserPos pos, SqlNode... operands)
SqlCall
SqlWithItem.SqlWithItemOperator. createCall(SqlLiteral functionQualifier, SqlParserPos pos, SqlNode... operands)
private static SqlCall
SqlFilterOperator. getAggCall(SqlCall call)
SqlCall
SqlCallBinding. getCall()
Returns the call node.SqlCall
SqlJdbcFunctionCall. getLookupCall()
SqlCall
SqlWindow. getWindowCall()
private static SqlCall
SqlFilterOperator. getWithinGroupCall(SqlCall call)
static SqlCall
SqlUtil. makeCall(SqlOperatorTable opTab, SqlIdentifier id)
If an identifier is a legitimate call to a function which has no arguments and requires no parentheses (for example "CURRENT_USER"), returns a call to that function, otherwise returns null.SqlCall
SqlCallBinding. permutedCall()
Returns a call that is equivalent except that arguments have been permuted into the logical order.Methods in org.apache.calcite.sql with parameters of type SqlCall Modifier and Type Method Description <R> void
SqlAsOperator. acceptCall(SqlVisitor<R> visitor, SqlCall call, boolean onlyExpressions, SqlBasicVisitor.ArgHandler<R> argHandler)
<R> void
SqlMatchRecognize.SqlMatchRecognizeOperator. acceptCall(SqlVisitor<R> visitor, SqlCall call, boolean onlyExpressions, SqlBasicVisitor.ArgHandler<R> argHandler)
<R> R
SqlOperator. acceptCall(SqlVisitor<R> visitor, SqlCall call)
Accepts aSqlVisitor
, visiting each operand of a call.<R> void
SqlOperator. acceptCall(SqlVisitor<R> visitor, SqlCall call, boolean onlyExpressions, SqlBasicVisitor.ArgHandler<R> argHandler)
Accepts aSqlVisitor
, directing anSqlBasicVisitor.ArgHandler
to visit an operand of a call.<R> void
SqlOverOperator. acceptCall(SqlVisitor<R> visitor, SqlCall call, boolean onlyExpressions, SqlBasicVisitor.ArgHandler<R> argHandler)
Accepts aSqlVisitor
, and tells it to visit each child.<R> void
SqlSelectOperator. acceptCall(SqlVisitor<R> visitor, SqlCall call, boolean onlyExpressions, SqlBasicVisitor.ArgHandler<R> argHandler)
<R> void
SqlWindow.SqlWindowOperator. acceptCall(SqlVisitor<R> visitor, SqlCall call, boolean onlyExpressions, SqlBasicVisitor.ArgHandler<R> argHandler)
protected RelDataType
SqlBinaryOperator. adjustType(SqlValidator validator, SqlCall call, RelDataType type)
protected RelDataType
SqlOperator. adjustType(SqlValidator validator, SqlCall call, RelDataType type)
Validates and determines coercibility and resulting collation name of binary operator if needed.protected RelDataType
SqlPostfixOperator. adjustType(SqlValidator validator, SqlCall call, RelDataType type)
protected RelDataType
SqlPrefixOperator. adjustType(SqlValidator validator, SqlCall call, RelDataType type)
protected void
SqlOperator. checkOperandCount(SqlValidator validator, SqlOperandTypeChecker argType, SqlCall call)
protected java.util.List<java.lang.String>
SqlOperator. constructArgNameList(SqlCall call)
protected java.util.List<RelDataType>
SqlOperator. constructArgTypeList(SqlValidator validator, SqlValidatorScope scope, SqlCall call, java.util.List<SqlNode> args, boolean convertRowArgToColumnList)
protected java.util.List<SqlNode>
SqlOperator. constructOperandList(SqlValidator validator, SqlCall call, java.util.List<java.lang.String> argNames)
RelDataType
SqlAsOperator. deriveType(SqlValidator validator, SqlValidatorScope scope, SqlCall call)
RelDataType
SqlBinaryOperator. deriveType(SqlValidator validator, SqlValidatorScope scope, SqlCall call)
RelDataType
SqlFilterOperator. deriveType(SqlValidator validator, SqlValidatorScope scope, SqlCall call)
RelDataType
SqlFunction. deriveType(SqlValidator validator, SqlValidatorScope scope, SqlCall call)
private RelDataType
SqlFunction. deriveType(SqlValidator validator, SqlValidatorScope scope, SqlCall call, boolean convertRowArgToColumnList)
RelDataType
SqlInternalOperator. deriveType(SqlValidator validator, SqlValidatorScope scope, SqlCall call)
RelDataType
SqlJdbcFunctionCall. deriveType(SqlValidator validator, SqlValidatorScope scope, SqlCall call)
RelDataType
SqlOperator. deriveType(SqlValidator validator, SqlValidatorScope scope, SqlCall call)
Derives the type of a call to this operator.RelDataType
SqlOverOperator. deriveType(SqlValidator validator, SqlValidatorScope scope, SqlCall call)
RelDataType
SqlWithinGroupOperator. deriveType(SqlValidator validator, SqlValidatorScope scope, SqlCall call)
private static SqlCall
SqlFilterOperator. getAggCall(SqlCall call)
SqlMonotonicity
SqlOperator. getMonotonicity(SqlCall call, SqlValidatorScope scope)
Deprecated.private static SqlCall
SqlFilterOperator. getWithinGroupCall(SqlCall call)
private static boolean
SqlFilterOperator. hasWithinGroupCall(SqlCall call)
private java.util.List<SqlNode>
SqlCallBinding. permutedOperands(SqlCall call)
Returns the operands to a call permuted into the same order as the formal parameters of the function.protected void
SqlOperator. preValidateCall(SqlValidator validator, SqlValidatorScope scope, SqlCall call)
Receives notification that validation of a call to this operator is beginning.SqlNode
SqlJdbcFunctionCall. rewriteCall(SqlValidator validator, SqlCall call)
SqlNode
SqlOperator. rewriteCall(SqlValidator validator, SqlCall call)
Rewrites a call to this operator.SqlNode
SqlProcedureCallOperator. rewriteCall(SqlValidator validator, SqlCall call)
void
SqlWindow. setWindowCall(SqlCall windowCall)
void
SqlAsOperator. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlFilterOperator. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlFunction. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlFunctionalOperator. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlInfixOperator. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlJdbcFunctionCall. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlJoin.SqlJoinOperator. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlLateralOperator. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlMatchRecognize.SqlMatchRecognizeOperator. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlOperator. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
Writes a SQL representation of a call to this operator to a writer, including parentheses if the operators on either side are of greater precedence.void
SqlOrderBy.Operator. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlSelectOperator. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
abstract void
SqlSyntax. unparse(SqlWriter writer, SqlOperator operator, SqlCall call, int leftPrec, int rightPrec)
Converts a call to an operator of this syntax into a string.void
SqlUnnestOperator. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlValuesOperator. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlWindow.SqlWindowOperator. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlWith.SqlWithOperator. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlWithinGroupOperator. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlWithItem.SqlWithItemOperator. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
static void
SqlUtil. unparseBinarySyntax(SqlOperator operator, SqlCall call, SqlWriter writer, int leftPrec, int rightPrec)
void
SqlDialect. unparseCall(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
static void
SqlUtil. unparseFunctionSyntax(SqlOperator operator, SqlWriter writer, SqlCall call)
Unparses a call to an operator which has function syntax.void
SqlDialect. unparseSqlDatetimeArithmetic(SqlWriter writer, SqlCall call, SqlKind sqlKind, int leftPrec, int rightPrec)
void
SqlAggFunction. validateCall(SqlCall call, SqlValidator validator, SqlValidatorScope scope, SqlValidatorScope operandScope)
void
SqlAsOperator. validateCall(SqlCall call, SqlValidator validator, SqlValidatorScope scope, SqlValidatorScope operandScope)
void
SqlFilterOperator. validateCall(SqlCall call, SqlValidator validator, SqlValidatorScope scope, SqlValidatorScope operandScope)
void
SqlFunction. validateCall(SqlCall call, SqlValidator validator, SqlValidatorScope scope, SqlValidatorScope operandScope)
void
SqlMatchRecognize.SqlMatchRecognizeOperator. validateCall(SqlCall call, SqlValidator validator, SqlValidatorScope scope, SqlValidatorScope operandScope)
void
SqlOperator. validateCall(SqlCall call, SqlValidator validator, SqlValidatorScope scope, SqlValidatorScope operandScope)
Validates a call to this operator.void
SqlOverOperator. 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
SqlWithinGroupOperator. validateCall(SqlCall call, SqlValidator validator, SqlValidatorScope scope, SqlValidatorScope operandScope)
RelDataType
SqlOperator. validateOperands(SqlValidator validator, SqlValidatorScope scope, SqlCall call)
Validates the operands of a call, inferring the return type in the process.protected void
SqlFunction. validateQuantifier(SqlValidator validator, SqlCall call)
Throws a validation error if a DISTINCT or ALL quantifier is present but not allowed.java.lang.Void
SqlUtil.Genealogist. visit(SqlCall call)
Constructors in org.apache.calcite.sql with parameters of type SqlCall Constructor Description SqlCallBinding(SqlValidator validator, SqlValidatorScope scope, SqlCall call)
Creates a call binding. -
Uses of SqlCall in org.apache.calcite.sql.advise
Methods in org.apache.calcite.sql.advise with parameters of type SqlCall Modifier and Type Method Description protected void
SqlAdvisorValidator. validateOver(SqlCall call, SqlValidatorScope scope)
-
Uses of SqlCall in org.apache.calcite.sql.ddl
Subclasses of SqlCall in org.apache.calcite.sql.ddl Modifier and Type Class Description class
SqlAttributeDefinition
Parse tree for SqlAttributeDefinition, which is part of aSqlCreateType
.class
SqlCheckConstraint
Parse tree forUNIQUE
,PRIMARY KEY
constraints.class
SqlColumnDeclaration
Parse tree forUNIQUE
,PRIMARY KEY
constraints.class
SqlCreateForeignSchema
Parse tree forCREATE FOREIGN SCHEMA
statement.class
SqlCreateFunction
Parse tree forCREATE FUNCTION
statement.class
SqlCreateMaterializedView
Parse tree forCREATE MATERIALIZED VIEW
statement.class
SqlCreateSchema
Parse tree forCREATE SCHEMA
statement.class
SqlCreateTable
Parse tree forCREATE TABLE
statement.class
SqlCreateType
Parse tree forCREATE TYPE
statement.class
SqlCreateView
Parse tree forCREATE VIEW
statement.class
SqlDropFunction
Parse tree forDROP FUNCTION
statement.class
SqlDropMaterializedView
Parse tree forDROP MATERIALIZED VIEW
statement.(package private) class
SqlDropObject
Base class for parse trees ofDROP TABLE
,DROP VIEW
,DROP MATERIALIZED VIEW
andDROP TYPE
statements.class
SqlDropSchema
Parse tree forDROP TABLE
statement.class
SqlDropTable
Parse tree forDROP TABLE
statement.class
SqlDropType
Parse tree forDROP TYPE
statement.class
SqlDropView
Parse tree forDROP VIEW
statement.class
SqlKeyConstraint
Parse tree forUNIQUE
,PRIMARY KEY
constraints. -
Uses of SqlCall in org.apache.calcite.sql.dialect
Methods in org.apache.calcite.sql.dialect with parameters of type SqlCall Modifier and Type Method Description void
HsqldbSqlDialect. unparseCall(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
MssqlSqlDialect. unparseCall(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
MysqlSqlDialect. unparseCall(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
OracleSqlDialect. unparseCall(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
PostgresqlSqlDialect. unparseCall(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
private void
MssqlSqlDialect. unparseFloor(SqlWriter writer, SqlCall call)
Unparses datetime floor for Microsoft SQL Server.private void
MysqlSqlDialect. unparseFloor(SqlWriter writer, SqlCall call)
Unparses datetime floor for MySQL.private void
MssqlSqlDialect. unparseFloorWithUnit(SqlWriter writer, SqlCall call, int charLen, java.lang.String offset)
void
MssqlSqlDialect. unparseSqlDatetimeArithmetic(SqlWriter writer, SqlCall call, SqlKind sqlKind, int leftPrec, int rightPrec)
-
Uses of SqlCall in org.apache.calcite.sql.fun
Subclasses of SqlCall in org.apache.calcite.sql.fun Modifier and Type Class Description class
SqlCase
ASqlCase
is a node of a parse tree which represents a case statement.Methods in org.apache.calcite.sql.fun that return SqlCall Modifier and Type Method Description static SqlCall
SqlStdOperatorTable. convertAuxiliaryToGroupCall(SqlCall call)
Converts a call to a grouped auxiliary function to a call to the grouped window function.private static SqlCall
SqlStdOperatorTable. copy(SqlCall call, SqlOperator operator)
Creates a copy of a call with a new operator.SqlCall
SqlCaseOperator. createCall(SqlLiteral functionQualifier, SqlParserPos pos, SqlNode... operands)
SqlCall
SqlJsonArrayFunction. createCall(SqlLiteral functionQualifier, SqlParserPos pos, SqlNode... operands)
SqlCall
SqlJsonObjectFunction. createCall(SqlLiteral functionQualifier, SqlParserPos pos, SqlNode... operands)
SqlCall
SqlJsonQueryFunction. createCall(SqlLiteral functionQualifier, SqlParserPos pos, SqlNode... operands)
SqlCall
SqlJsonValueFunction. createCall(SqlLiteral functionQualifier, SqlParserPos pos, SqlNode... operands)
SqlCall
SqlTrimFunction. createCall(SqlLiteral functionQualifier, SqlParserPos pos, SqlNode... operands)
static SqlCall
SqlFloorFunction. replaceTimeUnitOperand(SqlCall call, java.lang.String literal, SqlParserPos pos)
Copies aSqlCall
, replacing the time unit operand with the given literal.Methods in org.apache.calcite.sql.fun with parameters of type SqlCall Modifier and Type Method Description <R> void
SqlDotOperator. acceptCall(SqlVisitor<R> visitor, SqlCall call, boolean onlyExpressions, SqlBasicVisitor.ArgHandler<R> argHandler)
(package private) void
SqlOverlapsOperator. arg(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec, int i)
protected void
SqlJsonApiCommonSyntaxOperator. checkOperandCount(SqlValidator validator, SqlOperandTypeChecker argType, SqlCall call)
protected void
SqlJsonArrayFunction. checkOperandCount(SqlValidator validator, SqlOperandTypeChecker argType, SqlCall call)
protected void
SqlJsonObjectFunction. checkOperandCount(SqlValidator validator, SqlOperandTypeChecker argType, SqlCall call)
private java.util.List<RelDataType>
SqlBetweenOperator. collectOperandTypes(SqlValidator validator, SqlValidatorScope scope, SqlCall call)
static SqlLiteral
SqlLiteralChainOperator. concatenateOperands(SqlCall call)
Concatenates the operands of a call to this operator.static SqlCall
SqlStdOperatorTable. convertAuxiliaryToGroupCall(SqlCall call)
Converts a call to a grouped auxiliary function to a call to the grouped window function.static java.util.List<Pair<SqlNode,AuxiliaryConverter>>
SqlStdOperatorTable. convertGroupToAuxiliaryCalls(SqlCall call)
Converts a call to a grouped window function to a call to its auxiliary window function(s).private static SqlCall
SqlStdOperatorTable. copy(SqlCall call, SqlOperator operator)
Creates a copy of a call with a new operator.RelDataType
SqlCaseOperator. deriveType(SqlValidator validator, SqlValidatorScope scope, SqlCall call)
RelDataType
SqlCountAggFunction. deriveType(SqlValidator validator, SqlValidatorScope scope, SqlCall call)
RelDataType
SqlCursorConstructor. deriveType(SqlValidator validator, SqlValidatorScope scope, SqlCall call)
RelDataType
SqlDotOperator. deriveType(SqlValidator validator, SqlValidatorScope scope, SqlCall call)
RelDataType
SqlInOperator. deriveType(SqlValidator validator, SqlValidatorScope scope, SqlCall call)
RelDataType
SqlJsonArrayAggAggFunction. deriveType(SqlValidator validator, SqlValidatorScope scope, SqlCall call)
RelDataType
SqlJsonObjectAggAggFunction. deriveType(SqlValidator validator, SqlValidatorScope scope, SqlCall call)
RelDataType
SqlMultisetQueryConstructor. deriveType(SqlValidator validator, SqlValidatorScope scope, SqlCall call)
RelDataType
SqlSequenceValueOperator. deriveType(SqlValidator validator, SqlValidatorScope scope, SqlCall call)
static SqlCall
SqlFloorFunction. replaceTimeUnitOperand(SqlCall call, java.lang.String literal, SqlParserPos pos)
Copies aSqlCall
, replacing the time unit operand with the given literal.SqlNode
SqlCoalesceFunction. rewriteCall(SqlValidator validator, SqlCall call)
SqlNode
SqlDatePartFunction. rewriteCall(SqlValidator validator, SqlCall call)
SqlNode
SqlNewOperator. rewriteCall(SqlValidator validator, SqlCall call)
SqlNode
SqlNullifFunction. rewriteCall(SqlValidator validator, SqlCall call)
void
SqlArgumentAssignmentOperator. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlBetweenOperator. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlCaseOperator. unparse(SqlWriter writer, SqlCall call_, int leftPrec, int rightPrec)
void
SqlCastFunction. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlColumnListConstructor. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlConvertFunction. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlCursorConstructor. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlDatetimePlusOperator. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlDatetimeSubtractionOperator. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlDefaultOperator. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlDotOperator. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlExtendOperator. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlExtractFunction. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlFloorFunction. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlItemOperator. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlJsonApiCommonSyntaxOperator. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlJsonArrayAggAggFunction. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlJsonArrayFunction. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlJsonExistsFunction. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlJsonObjectAggAggFunction. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlJsonObjectFunction. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlJsonQueryFunction. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlJsonValueExpressionOperator. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlJsonValueFunction. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlLikeOperator. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlLiteralChainOperator. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlMultisetQueryConstructor. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlMultisetValueConstructor. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlOverlapsOperator. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlOverlayFunction. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlPositionFunction. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlRollupOperator. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlRowOperator. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlSequenceValueOperator. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlSubstringFunction. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlThrowOperator. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlTranslate3Function. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
void
SqlTrimFunction. unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
private static void
SqlRollupOperator. unparseCube(SqlWriter writer, SqlCall call)
static void
SqlFloorFunction. unparseDatetimeFunction(SqlWriter writer, SqlCall call, java.lang.String funName, java.lang.Boolean datetimeFirst)
Most dialects that natively support datetime floor will use this.void
SqlAbstractGroupFunction. validateCall(SqlCall call, SqlValidator validator, SqlValidatorScope scope, SqlValidatorScope operandScope)
void
SqlCaseOperator. validateCall(SqlCall call, SqlValidator validator, SqlValidatorScope scope, SqlValidatorScope operandScope)
void
SqlDotOperator. validateCall(SqlCall call, SqlValidator validator, SqlValidatorScope scope, SqlValidatorScope operandScope)
void
SqlLiteralChainOperator. validateCall(SqlCall call, SqlValidator validator, SqlValidatorScope scope, SqlValidatorScope operandScope)
void
SqlSequenceValueOperator. validateCall(SqlCall call, SqlValidator validator, SqlValidatorScope scope, SqlValidatorScope operandScope)
java.lang.Void
SqlBetweenOperator.AndFinder. visit(SqlCall call)
-
Uses of SqlCall in org.apache.calcite.sql.parser
Methods in org.apache.calcite.sql.parser that return SqlCall Modifier and Type Method Description protected SqlCall
SqlAbstractParserImpl. createCall(SqlIdentifier funName, SqlParserPos pos, SqlFunctionCategory funcType, SqlLiteral functionQualifier, java.lang.Iterable<? extends SqlNode> operands)
Creates a call.protected SqlCall
SqlAbstractParserImpl. createCall(SqlIdentifier funName, SqlParserPos pos, SqlFunctionCategory funcType, SqlLiteral functionQualifier, SqlNode[] operands)
Creates a call. -
Uses of SqlCall in org.apache.calcite.sql.type
Methods in org.apache.calcite.sql.type with parameters of type SqlCall Modifier and Type Method Description 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. -
Uses of SqlCall in org.apache.calcite.sql.util
Fields in org.apache.calcite.sql.util declared as SqlCall Modifier and Type Field Description private SqlCall
SqlShuttle.CallCopyingArgHandler. call
Methods in org.apache.calcite.sql.util with parameters of type SqlCall Modifier and Type Method Description R
SqlBasicVisitor. visit(SqlCall call)
SqlNode
SqlShuttle. visit(SqlCall call)
R
SqlVisitor. visit(SqlCall call)
Visits a call to aSqlOperator
.Constructors in org.apache.calcite.sql.util with parameters of type SqlCall Constructor Description CallCopyingArgHandler(SqlCall call, boolean alwaysCopy)
-
Uses of SqlCall in org.apache.calcite.sql.validate
Fields in org.apache.calcite.sql.validate declared as SqlCall Modifier and Type Field Description protected SqlCall
AliasNamespace. call
private SqlCall
ProcedureNamespace. call
private SqlCall
SetopNamespace. call
private SqlCall
CollectNamespace. child
private SqlCall
CollectScope. child
private SqlCall
OverScope. overCall
private SqlCall
UnnestNamespace. unnest
private SqlCall
TableConstructorNamespace. values
Fields in org.apache.calcite.sql.validate with type parameters of type SqlCall Modifier and Type Field Description private java.util.List<SqlCall>
AggFinder.AggIterable. calls
Methods in org.apache.calcite.sql.validate that return SqlCall Modifier and Type Method Description SqlCall
AggFinder. findAgg(java.util.List<SqlNode> nodes)
SqlCall
AggFinder. findAgg(SqlNode node)
Finds an aggregate.Methods in org.apache.calcite.sql.validate that return types with arguments of type SqlCall Modifier and Type Method Description (package private) java.lang.Iterable<SqlCall>
AggFinder. findAll(java.lang.Iterable<SqlNode> nodes)
Creates a copy of this finder that has the same parameters as this, then returns the list of all aggregates found.java.util.Iterator<SqlCall>
AggFinder.AggIterable. iterator()
Methods in org.apache.calcite.sql.validate with parameters of type SqlCall Modifier and Type Method Description protected SetopNamespace
SqlValidatorImpl. createSetopNamespace(SqlCall call, SqlNode enclosingNode)
Creates a namespace for a set operation (UNION
,INTERSECT
, orEXCEPT
).RelDataType
SqlValidator. deriveConstructorType(SqlValidatorScope scope, SqlCall call, SqlFunction unresolvedConstructor, SqlFunction resolvedConstructor, java.util.List<RelDataType> argTypes)
Derives the type of a constructor.RelDataType
SqlValidatorImpl. deriveConstructorType(SqlValidatorScope scope, SqlCall call, SqlFunction unresolvedConstructor, SqlFunction resolvedConstructor, java.util.List<RelDataType> argTypes)
protected java.lang.Void
AggFinder.AggIterable. found(SqlCall call)
protected java.lang.Void
AggFinder. found(SqlCall call)
protected abstract java.lang.Void
AggVisitor. found(SqlCall call)
SqlValidatorScope
AggregatingSelectScope. getOperandScope(SqlCall call)
SqlValidatorScope
DelegatingScope. getOperandScope(SqlCall call)
SqlValidatorScope
EmptyScope. getOperandScope(SqlCall call)
SqlValidatorScope
ParameterScope. getOperandScope(SqlCall call)
SqlValidatorScope
SqlValidatorScope. getOperandScope(SqlCall call)
Returns the scope within which operands to a call are to be validated.(package private) RelDataType
SqlValidatorImpl. getTableConstructorRowType(SqlCall values, SqlValidatorScope scope)
Returns null if there is no common type.CalciteException
SqlValidator. handleUnresolvedFunction(SqlCall call, SqlFunction unresolvedFunction, java.util.List<RelDataType> argTypes, java.util.List<java.lang.String> argNames)
Handles a call to a function which cannot be resolved.CalciteException
SqlValidatorImpl. handleUnresolvedFunction(SqlCall call, SqlFunction unresolvedFunction, java.util.List<RelDataType> argTypes, java.util.List<java.lang.String> argNames)
private boolean
SqlValidatorImpl. isRolledUpColumnAllowedInAgg(SqlIdentifier identifier, SqlValidatorScope scope, SqlCall aggCall, SqlNode parent)
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.void
SqlValidator. validateAggregateParams(SqlCall aggCall, SqlNode filter, SqlNodeList orderList, SqlValidatorScope scope)
Validates parameters for aggregate function.void
SqlValidatorImpl. validateAggregateParams(SqlCall aggCall, SqlNode filter, SqlNodeList orderList, 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. validateGroupingSets(SqlValidatorScope groupScope, AggregatingSelectScope aggregatingScope, SqlCall groupItem)
void
SqlValidator. validateMatchRecognize(SqlCall pattern)
Validates a MATCH_RECOGNIZE clause.void
SqlValidatorImpl. validateMatchRecognize(SqlCall call)
protected void
SqlValidatorImpl. validateOver(SqlCall call, SqlValidatorScope scope)
protected void
SqlValidatorImpl. validateUnnest(SqlCall call, SqlValidatorScope scope, RelDataType targetRowType)
protected void
SqlValidatorImpl. validateValues(SqlCall node, RelDataType targetRowType, SqlValidatorScope scope)
Validates a VALUES 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)
java.lang.Void
AggChecker. visit(SqlCall call)
java.lang.Void
AggVisitor. visit(SqlCall call)
SqlNode
SqlScopedShuttle. visit(SqlCall call)
RelDataType
SqlValidatorImpl.DeriveTypeVisitor. visit(SqlCall call)
SqlNode
SqlValidatorImpl.NavigationExpander. visit(SqlCall call)
SqlNode
SqlValidatorImpl.NavigationReplacer. visit(SqlCall call)
java.util.Set<java.lang.String>
SqlValidatorImpl.PatternValidator. visit(SqlCall call)
java.lang.Void
SqlValidatorImpl.PatternVarVisitor. visit(SqlCall call)
protected SqlNode
SqlScopedShuttle. visitScoped(SqlCall call)
Visits an operator call.protected SqlNode
SqlValidatorImpl.Expander. visitScoped(SqlCall call)
protected SqlNode
SqlValidatorImpl.OrderExpressionExpander. visitScoped(SqlCall call)
protected SqlNode
SqlValidatorUtil.DeepCopier. visitScoped(SqlCall call)
Deprecated.Constructors in org.apache.calcite.sql.validate with parameters of type SqlCall Constructor Description AliasNamespace(SqlValidatorImpl validator, SqlCall call, SqlNode enclosingNode)
Creates an AliasNamespace.CollectNamespace(SqlCall child, SqlValidatorScope scope, SqlNode enclosingNode)
Creates a CollectNamespace.CollectScope(SqlValidatorScope parent, SqlValidatorScope usingScope, SqlCall child)
OverScope(SqlValidatorScope parent, SqlCall overCall)
Creates a scope corresponding to a SELECT clause.ProcedureNamespace(SqlValidatorImpl validator, SqlValidatorScope scope, SqlCall call, SqlNode enclosingNode)
SetopNamespace(SqlValidatorImpl validator, SqlCall call, SqlNode enclosingNode)
Creates aSetopNamespace
.TableConstructorNamespace(SqlValidatorImpl validator, SqlCall values, SqlValidatorScope scope, SqlNode enclosingNode)
Creates a TableConstructorNamespace.UnnestNamespace(SqlValidatorImpl validator, SqlCall unnest, SqlValidatorScope scope, SqlNode enclosingNode)
-
Uses of SqlCall in org.apache.calcite.sql2rel
Methods in org.apache.calcite.sql2rel that return SqlCall Modifier and Type Method Description private SqlCall
StandardConvertletTable. plus(SqlParserPos pos, SqlNode a0, SqlNode a1)
Methods in org.apache.calcite.sql2rel with parameters of type SqlCall Modifier and Type Method Description protected void
SqlToRelConverter. afterTableFunction(SqlToRelConverter.Blackboard bb, SqlCall call, LogicalTableFunctionScan callRel)
private boolean
SqlToRelConverter. all(SqlCall call)
RexNode
StandardConvertletTable. castToValidatedType(SqlRexContext cx, SqlCall call, RexNode value)
Casts a RexNode value to the validated type of a SqlCall.RexNode
StandardConvertletTable. convertAggregateFunction(SqlRexContext cx, SqlAggFunction fun, SqlCall call)
RexNode
StandardConvertletTable. convertArray(SqlRexContext cx, SqlArrayValueConstructor op, SqlCall call)
RexNode
StandardConvertletTable. convertBetween(SqlRexContext cx, SqlBetweenOperator op, SqlCall call)
Converts a BETWEEN expression.RexNode
SqlNodeToRexConverter. convertCall(SqlRexContext cx, SqlCall call)
RexNode
SqlNodeToRexConverterImpl. convertCall(SqlRexContext cx, SqlCall call)
RexNode
SqlRexConvertlet. convertCall(SqlRexContext cx, SqlCall call)
RexNode
StandardConvertletTable.AvgVarianceConvertlet. convertCall(SqlRexContext cx, SqlCall call)
RexNode
StandardConvertletTable. convertCall(SqlRexContext cx, SqlCall call)
Converts a call to an operator into aRexCall
to the same operator.private RexNode
StandardConvertletTable. convertCall(SqlRexContext cx, SqlCall call, SqlOperator op)
RexNode
StandardConvertletTable.FloorCeilConvertlet. convertCall(SqlRexContext cx, SqlCall call)
RexNode
StandardConvertletTable.GreatestConvertlet. convertCall(SqlRexContext cx, SqlCall call)
RexNode
StandardConvertletTable.RegrCovarianceConvertlet. convertCall(SqlRexContext cx, SqlCall call)
RexNode
StandardConvertletTable.TimestampAddConvertlet. convertCall(SqlRexContext cx, SqlCall call)
RexNode
StandardConvertletTable.TimestampDiffConvertlet. convertCall(SqlRexContext cx, SqlCall call)
RexNode
StandardConvertletTable.TrimConvertlet. convertCall(SqlRexContext cx, SqlCall call)
protected RexNode
StandardConvertletTable. convertCast(SqlRexContext cx, SqlCall call)
protected void
SqlToRelConverter. convertCollectionTable(SqlToRelConverter.Blackboard bb, SqlCall call)
RexNode
StandardConvertletTable. convertDatetimeMinus(SqlRexContext cx, SqlDatetimeSubtractionOperator op, SqlCall call)
RexNode
StandardConvertletTable. convertExtract(SqlRexContext cx, SqlExtractFunction op, SqlCall call)
Converts a call to theEXTRACT
function.protected RexNode
StandardConvertletTable. convertFloorCeil(SqlRexContext cx, SqlCall call)
RexNode
StandardConvertletTable. convertFunction(SqlRexContext cx, SqlFunction fun, SqlCall call)
private RexNode
StandardConvertletTable. convertIsDistinctFrom(SqlRexContext cx, SqlCall call, boolean neg)
RexNode
StandardConvertletTable. convertJdbc(SqlRexContext cx, SqlJdbcFunctionCall op, SqlCall call)
RexNode
StandardConvertletTable. convertLiteralChain(SqlRexContext cx, SqlLiteralChainOperator op, SqlCall call)
Converts a LiteralChain expression: that is, concatenates the operands immediately, to produce a single literal string.RexNode
StandardConvertletTable. convertMap(SqlRexContext cx, SqlMapValueConstructor op, SqlCall call)
protected void
SqlToRelConverter. convertMatchRecognize(SqlToRelConverter.Blackboard bb, SqlCall call)
RexNode
StandardConvertletTable. convertMultiset(SqlRexContext cx, SqlMultisetValueConstructor op, SqlCall call)
RexNode
StandardConvertletTable. convertMultisetQuery(SqlRexContext cx, SqlMultisetQueryConstructor op, SqlCall call)
RexNode
StandardConvertletTable. convertOverlaps(SqlRexContext cx, SqlOverlapsOperator op, SqlCall call)
Converts a call to OVERLAPS.private RexNode
StandardConvertletTable. convertPlus(SqlRexContext cx, SqlCall call)
RexNode
StandardConvertletTable. convertRow(SqlRexContext cx, SqlRowOperator op, SqlCall call)
Converts a ROW.private RelNode
SqlToRelConverter. convertRowConstructor(SqlToRelConverter.Blackboard bb, SqlCall rowConstructor)
Converts a row constructor into a relational expression.RexNode
StandardConvertletTable. convertSequenceValue(SqlRexContext cx, SqlSequenceValueOperator fun, SqlCall call)
protected RelNode
SqlToRelConverter. convertSetOp(SqlCall call)
Converts a set operation (UNION, INTERSECT, MINUS) into relational expressions.RexNode
SqlToRelConverter.NoOpSubQueryConverter. convertSubQuery(SqlCall subQuery, SqlToRelConverter parentConverter, boolean isExists, boolean isExplain)
RexNode
SubQueryConverter. convertSubQuery(SqlCall subQuery, SqlToRelConverter parentConverter, boolean isExists, boolean isExplain)
Converts the sub-query to an equivalent expression.RelNode
SqlToRelConverter. convertValues(SqlCall values, RelDataType targetRowType)
Converts a SELECT statement's parse tree into a relational expression.private void
SqlToRelConverter. convertValuesImpl(SqlToRelConverter.Blackboard bb, SqlCall values, RelDataType targetRowType)
Converts a values clause (as in "INSERT INTO T(x,y) VALUES (1,2)") into a relational expression.SqlRexConvertlet
ReflectiveConvertletTable. get(SqlCall call)
SqlRexConvertlet
SqlRexConvertletTable. get(SqlCall call)
Returns the convertlet applicable to a given expression.RexRangeRef
SqlRexContext. getSubQueryExpr(SqlCall call)
Returns the expression used to access a given IN or EXISTSsub-query
.RexRangeRef
SqlToRelConverter.Blackboard. getSubQueryExpr(SqlCall call)
RexNode
SqlToRelConverter.AggConverter. lookupAggregates(SqlCall call)
private void
SqlToRelConverter.AggConverter. translateAgg(SqlCall call)
private void
SqlToRelConverter.AggConverter. translateAgg(SqlCall call, SqlNode filter, SqlNodeList orderList, SqlCall outerCall)
java.lang.Void
SqlToRelConverter.AggConverter. visit(SqlCall call)
java.lang.Void
SqlToRelConverter.AggregateFinder. visit(SqlCall call)
RexNode
SqlToRelConverter.Blackboard. visit(SqlCall call)
-
Uses of SqlCall in org.apache.calcite.util
Methods in org.apache.calcite.util with parameters of type SqlCall Modifier and Type Method Description static boolean
Util. isSingleValue(SqlCall call)
Does nothing with its argument.java.lang.Void
Util.OverFinder. visit(SqlCall call)
-