Package org.apache.calcite.test
Class MockSqlOperatorTable.InvalidTableFunction
java.lang.Object
org.apache.calcite.sql.SqlOperator
org.apache.calcite.sql.SqlFunction
org.apache.calcite.test.MockSqlOperatorTable.InvalidTableFunction
- All Implemented Interfaces:
SqlTableFunction
- Enclosing class:
MockSqlOperatorTable
public static class MockSqlOperatorTable.InvalidTableFunction
extends SqlFunction
implements SqlTableFunction
Invalid user-defined table function with multiple input tables with
row semantics.
-
Field Summary
Fields inherited from class org.apache.calcite.sql.SqlOperator
kind, MDX_PRECEDENCE, NL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
argumentMustBeScalar
(int ordinal) Returns whether theordinal
th argument to this operator must be scalar (as opposed to a query).Returns the record type of the table yielded by this function when applied to given arguments.tableCharacteristic
(int ordinal) Returns the table parameter characteristics forordinal
th parameter to this table function.Methods inherited from class org.apache.calcite.sql.SqlFunction
deriveType, getFunctionType, getNameAsId, getParamNames, getParamTypes, getSqlIdentifier, getSyntax, isQuantifierAllowed, unparse, validateCall, validateQuantifier
Methods inherited from class org.apache.calcite.sql.SqlOperator
acceptCall, acceptCall, adjustType, allowsFraming, checkOperandCount, checkOperandTypes, constructArgNameList, constructArgTypeList, constructOperandList, createCall, createCall, createCall, createCall, createCall, createCall, createCall, deriveOperandType, equals, getAllowedSignatures, getAllowedSignatures, getKind, getLeftPrec, getMonotonicity, getMonotonicity, getName, getOperandCountRange, getOperandTypeChecker, getOperandTypeInference, getReturnTypeInference, getRightPrec, getSignatureTemplate, getStrongPolicyInference, hashCode, inferReturnType, inferReturnType, isAggregator, isDeterministic, isDynamicFunction, isGroup, isGroupAuxiliary, isName, isSymmetrical, leftPrec, not, preValidateCall, requiresDecimalExpansion, requiresOrder, requiresOver, reverse, rewriteCall, rightPrec, toString, unparseListClause, unparseListClause, validateOperands, validRexOperands
-
Constructor Details
-
InvalidTableFunction
public InvalidTableFunction()
-
-
Method Details
-
getRowTypeInference
Description copied from interface:SqlTableFunction
Returns the record type of the table yielded by this function when applied to given arguments. Only literal arguments are passed, non-literal are replaced with default values (null, 0, false, etc).- Specified by:
getRowTypeInference
in interfaceSqlTableFunction
- Returns:
- strategy to infer the row type of a call to this function
-
tableCharacteristic
Description copied from interface:SqlTableFunction
Returns the table parameter characteristics forordinal
th parameter to this table function.Returns
null
if theordinal
th argument is not table parameter or theordinal
is smaller than 0 or theordinal
is greater than or equals to the number of parameters.- Specified by:
tableCharacteristic
in interfaceSqlTableFunction
-
argumentMustBeScalar
public boolean argumentMustBeScalar(int ordinal) Description copied from class:SqlOperator
Returns whether theordinal
th argument to this operator must be scalar (as opposed to a query).If true (the default), the validator will attempt to convert the argument into a scalar sub-query, which must have one column and return at most one row.
Operators such as
SELECT
andEXISTS
override this method.- Overrides:
argumentMustBeScalar
in classSqlOperator
-