public class SqlTimestampAddFunction extends SqlFunction
TIMESTAMPADD function, which adds an interval to a
datetime (TIMESTAMP, TIME or DATE).
The SQL syntax is
TIMESTAMPADD(timestamp interval, quantity,
datetime)
The interval time unit can one of the following literals:
Returns modified datetime.
kind, MDX_PRECEDENCE, NL| Modifier and Type | Method and Description |
|---|---|
static RelDataType |
deduceType(RelDataTypeFactory typeFactory,
org.apache.calcite.avatica.util.TimeUnit timeUnit,
RelDataType operandType1,
RelDataType operandType2) |
deriveType, getFunctionType, getNameAsId, getParamNames, getParamTypes, getSqlIdentifier, getSyntax, isQuantifierAllowed, unparse, validateCall, validateQuantifieracceptCall, acceptCall, adjustType, allowsFraming, argumentMustBeScalar, checkOperandCount, checkOperandTypes, constructArgNameList, constructArgTypeList, constructOperandList, createCall, createCall, createCall, createCall, createCall, createCall, createCall, 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, validRexOperandspublic static RelDataType deduceType(RelDataTypeFactory typeFactory, org.apache.calcite.avatica.util.TimeUnit timeUnit, RelDataType operandType1, RelDataType operandType2)
Copyright © 2012-2022 Apache Software Foundation. All Rights Reserved.