Class BuiltInTimestampFunction
- java.lang.Object
-
- org.apache.calcite.sql.SqlOperator
-
- org.apache.calcite.sql.SqlFunction
-
- org.apache.calcite.sql.fun.SqlAbstractTimeFunction
-
- org.apache.flink.cdc.runtime.functions.BuiltInTimestampFunction
-
@Internal public class BuiltInTimestampFunction extends org.apache.calcite.sql.fun.SqlAbstractTimeFunctionFunction that used to define SQL time function like LOCALTIMESTAMP, CURRENT_TIMESTAMP, CURRENT_ROW_TIMESTAMP(), NOW() in Flink, the function support configuring the return type and the precision of return type.
-
-
Constructor Summary
Constructors Constructor Description BuiltInTimestampFunction(String functionName, SqlTypeName returnTypeName, int precision)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.calcite.rel.type.RelDataTypeinferReturnType(org.apache.calcite.sql.SqlOperatorBinding opBinding)booleanisDeterministic()-
Methods inherited from class org.apache.calcite.sql.fun.SqlAbstractTimeFunction
getMonotonicity, getSyntax, isDynamicFunction
-
Methods inherited from class org.apache.calcite.sql.SqlFunction
deriveType, getFunctionType, getNameAsId, getParamNames, getParamTypes, getSqlIdentifier, isQuantifierAllowed, unparse, validateCall, validateQuantifier
-
Methods inherited from class org.apache.calcite.sql.SqlOperator
acceptCall, acceptCall, adjustType, allowsFraming, argumentMustBeScalar, checkOperandCount, checkOperandTypes, constructArgNameList, constructArgTypeList, constructOperandList, createCall, createCall, createCall, createCall, createCall, createCall, createCall, equals, getAllowedSignatures, getAllowedSignatures, getKind, getLeftPrec, getMonotonicity, getName, getOperandCountRange, getOperandTypeChecker, getOperandTypeInference, getReturnTypeInference, getRightPrec, getSignatureTemplate, getStrongPolicyInference, hashCode, inferReturnType, isAggregator, isGroup, isGroupAuxiliary, isName, isSymmetrical, leftPrec, not, preValidateCall, requiresDecimalExpansion, requiresOrder, requiresOver, reverse, rewriteCall, rightPrec, toString, unparseListClause, unparseListClause, validateOperands, validRexOperands
-
-
-
-
Constructor Detail
-
BuiltInTimestampFunction
public BuiltInTimestampFunction(String functionName, SqlTypeName returnTypeName, int precision)
-
-
Method Detail
-
inferReturnType
public org.apache.calcite.rel.type.RelDataType inferReturnType(org.apache.calcite.sql.SqlOperatorBinding opBinding)
- Overrides:
inferReturnTypein classorg.apache.calcite.sql.fun.SqlAbstractTimeFunction
-
isDeterministic
public boolean isDeterministic()
- Overrides:
isDeterministicin classorg.apache.calcite.sql.SqlOperator
-
-