1 package com.mapd.parser.extension.ddl;
3 import com.google.common.base.Preconditions;
5 import org.apache.calcite.sql.SqlAggFunction;
6 import org.apache.calcite.sql.SqlFunctionCategory;
7 import org.apache.calcite.sql.SqlKind;
8 import org.apache.calcite.sql.type.OperandTypes;
9 import org.apache.calcite.sql.type.ReturnTypes;
10 import org.apache.calcite.util.Optionality;
12 import java.util.List;
21 ReturnTypes.ARG0_NULLABLE_IF_EMPTY,
24 SqlFunctionCategory.NUMERIC,
27 Optionality.FORBIDDEN);
28 Preconditions.checkArgument(
29 kind == SqlKind.FIRST_VALUE || kind == SqlKind.LAST_VALUE);
SqlFirstLastValueInFrame(String functionName, SqlKind kind)
boolean allowsNullTreatment()