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.
Modifier and Type | Field and Description |
---|---|
private static SqlReturnTypeInference |
RETURN_TYPE_INFERENCE
Creates a SqlTimestampDiffFunction.
|
kind, MDX_PRECEDENCE, NL
Constructor and Description |
---|
SqlTimestampDiffFunction() |
deriveType, getFunctionType, getNameAsId, getParamNames, getParamTypes, getSqlIdentifier, getSyntax, isQuantifierAllowed, unparse, validateCall, validateQuantifier
acceptCall, 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, validRexOperands
private static final SqlReturnTypeInference RETURN_TYPE_INFERENCE
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.