Class FlinkReturnTypes
java.lang.Object
org.apache.flink.table.planner.plan.type.FlinkReturnTypes
Type inference in Flink.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.apache.calcite.sql.type.SqlReturnTypeInferenceType-inference strategy whereby the result type of a call is the type of the operand #0 (0-based), with nulls always allowed.static final org.apache.calcite.sql.type.SqlReturnTypeInferenceDetermine the return type of IF functions with arguments that has the least restrictive (eg: numeric, character, binary).static final org.apache.calcite.sql.type.SqlReturnTypeInferenceROUND(num [,len]) type inference.static final org.apache.calcite.sql.type.SqlReturnTypeInferencestatic final org.apache.calcite.sql.type.SqlReturnTypeInferencestatic final org.apache.calcite.sql.type.SqlReturnTypeInferencestatic final org.apache.calcite.sql.type.SqlReturnTypeInference -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ROUND_FUNCTION
public static final org.apache.calcite.sql.type.SqlReturnTypeInference ROUND_FUNCTIONROUND(num [,len]) type inference. -
ARG0_VARCHAR_FORCE_NULLABLE
public static final org.apache.calcite.sql.type.SqlReturnTypeInference ARG0_VARCHAR_FORCE_NULLABLEType-inference strategy whereby the result type of a call is the type of the operand #0 (0-based), with nulls always allowed. -
VARCHAR_FORCE_NULLABLE
public static final org.apache.calcite.sql.type.SqlReturnTypeInference VARCHAR_FORCE_NULLABLE -
VARCHAR_NOT_NULL
public static final org.apache.calcite.sql.type.SqlReturnTypeInference VARCHAR_NOT_NULL -
ROUND_FUNCTION_NULLABLE
public static final org.apache.calcite.sql.type.SqlReturnTypeInference ROUND_FUNCTION_NULLABLE -
IF_NULLABLE
public static final org.apache.calcite.sql.type.SqlReturnTypeInference IF_NULLABLEDetermine the return type of IF functions with arguments that has the least restrictive (eg: numeric, character, binary). The return type is the type of the argument with the largest range. We start to consider the arguments from the first one. If one of the arguments is not of the type that has the least restrictive (eg: numeric, character, binary), we return the type of the first argument instead. -
STR_MAP_NULLABLE
public static final org.apache.calcite.sql.type.SqlReturnTypeInference STR_MAP_NULLABLE
-
-
Constructor Details
-
FlinkReturnTypes
public FlinkReturnTypes()
-