class SqlTimestampDiffFunction extends SqlFunction
TIMESTAMPDIFF function, which calculates the difference
between two timestamps.
The SQL syntax is
TIMESTAMPDIFF(timestamp interval, timestamp,
timestamp)
The interval time unit can one of the following literals:
Returns difference between two timestamps in indicated timestamp interval.
kind, MDX_PRECEDENCE, NL| Constructor and Description |
|---|
SqlTimestampDiffFunction()
Creates a SqlTimestampDiffFunction.
|
deriveType, getFunctionType, getNameAsId, getParamNames, getParamTypes, getSqlIdentifier, getSyntax, isQuantifierAllowed, unparse, validateCall, validateQuantifieracceptCall, acceptCall, adjustType, allowsFraming, argumentMustBeScalar, checkOperandCount, checkOperandTypes, constructArgNameList, constructArgTypeList, constructOperandList, createCall, createCall, createCall, createCall, equals, getAllowedSignatures, getAllowedSignatures, getKind, getLeftPrec, getMonotonicity, getMonotonicity, getName, getOperandCountRange, getOperandTypeChecker, getOperandTypeInference, getReturnTypeInference, getRightPrec, getSignatureTemplate, hashCode, inferReturnType, inferReturnType, isAggregator, isDeterministic, isDynamicFunction, isGroup, isGroupAuxiliary, isName, leftPrec, preValidateCall, requiresDecimalExpansion, requiresOrder, requiresOver, rewriteCall, rightPrec, toString, unparseListClause, unparseListClause, validateOperands, validRexOperandsCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.