Package org.apache.calcite.sql.fun
Class SqlGroupIdFunction
- java.lang.Object
-
- org.apache.calcite.sql.SqlOperator
-
- org.apache.calcite.sql.SqlFunction
-
- org.apache.calcite.sql.SqlAggFunction
-
- org.apache.calcite.sql.fun.SqlAbstractGroupFunction
-
- org.apache.calcite.sql.fun.SqlGroupIdFunction
-
class SqlGroupIdFunction extends SqlAbstractGroupFunction
TheGROUP_ID()
function.Accepts no arguments. If the query has
GROUP BY x, y, z
thenGROUP_ID()
is the same asGROUPING(x, y, z)
.This function is not defined in the SQL standard; our implementation is consistent with Oracle.
Some examples are in
agg.iq
.
-
-
Field Summary
-
Fields inherited from class org.apache.calcite.sql.SqlOperator
kind, MDX_PRECEDENCE, NL
-
-
Constructor Summary
Constructors Constructor Description SqlGroupIdFunction()
-
Method Summary
-
Methods inherited from class org.apache.calcite.sql.fun.SqlAbstractGroupFunction
allowsFilter, isQuantifierAllowed, validateCall
-
Methods inherited from class org.apache.calcite.sql.SqlAggFunction
getParameterTypes, getReturnType, isAggregator, requiresGroupOrder, requiresOrder, requiresOver, unwrap
-
Methods inherited from class org.apache.calcite.sql.SqlFunction
deriveType, getFunctionType, getNameAsId, getParamNames, getParamTypes, getSqlIdentifier, getSyntax, unparse, validateQuantifier
-
Methods inherited from class org.apache.calcite.sql.SqlOperator
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, isDeterministic, isDynamicFunction, isGroup, isGroupAuxiliary, isName, leftPrec, preValidateCall, requiresDecimalExpansion, rewriteCall, rightPrec, toString, unparseListClause, unparseListClause, validateOperands, validRexOperands
-
-