Class SqlListAggFunction
java.lang.Object
org.apache.calcite.sql.SqlOperator
org.apache.calcite.sql.SqlFunction
org.apache.calcite.sql.SqlAggFunction
org.apache.flink.table.planner.functions.sql.SqlListAggFunction
- All Implemented Interfaces:
org.apache.calcite.plan.Context,org.apache.calcite.schema.Wrapper
public class SqlListAggFunction
extends org.apache.calcite.sql.SqlAggFunction
LISTAGG aggregate function returns the concatenation of a list of values that are
input to the function.
NOTE: The difference between this and SqlStdOperatorTable.LISTAGG is that: (1).
constraint the second parameter must to be a character literal. (2). not require over clause to
use this aggregate function.
-
Field Summary
Fields inherited from class org.apache.calcite.sql.SqlOperator
kind, MDX_PRECEDENCE, NL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<org.apache.calcite.rel.type.RelDataType>getParameterTypes(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory) org.apache.calcite.rel.type.RelDataTypegetReturnType(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory) Methods inherited from class org.apache.calcite.sql.SqlAggFunction
allowsFilter, allowsNullTreatment, getDistinctOptionality, getRollup, isAggregator, isPercentile, isQuantifierAllowed, requiresGroupOrder, requiresOrder, requiresOver, unwrap, validateCallMethods inherited from class org.apache.calcite.sql.SqlFunction
deriveType, getFunctionType, getNameAsId, getParamNames, getParamTypes, getSqlIdentifier, getSyntax, unparse, validateQuantifierMethods 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, deriveOperandType, equals, getAllowedSignatures, getAllowedSignatures, getKind, getLeftPrec, getMonotonicity, getMonotonicity, getName, getOperandCountRange, getOperandTypeChecker, getOperandTypeInference, getReturnTypeInference, getRightPrec, getSignatureTemplate, getStrongPolicyInference, hashCode, inferReturnType, inferReturnType, isDeterministic, isDynamicFunction, isGroup, isGroupAuxiliary, isName, isSymmetrical, leftPrec, not, preValidateCall, requiresDecimalExpansion, reverse, rewriteCall, rightPrec, toString, unparseListClause, unparseListClause, validateOperands, validRexOperandsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.calcite.schema.Wrapper
maybeUnwrap, unwrapOrThrow
-
Constructor Details
-
SqlListAggFunction
public SqlListAggFunction()
-
-
Method Details
-
getParameterTypes
public List<org.apache.calcite.rel.type.RelDataType> getParameterTypes(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory) - Overrides:
getParameterTypesin classorg.apache.calcite.sql.SqlAggFunction
-
getReturnType
public org.apache.calcite.rel.type.RelDataType getReturnType(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory) - Overrides:
getReturnTypein classorg.apache.calcite.sql.SqlAggFunction
-