Class SystemTypeInference
- java.lang.Object
-
- org.apache.flink.table.types.inference.SystemTypeInference
-
@Internal public class SystemTypeInference extends Object
Extends theTypeInferencefunction-aware by additional system columns and validation.During planning system columns are available and can be accessed in SQL, during runtime those columns are not passed or returned by the eval() method. They are handled with custom code paths.
For example, for
ProcessTableFunction, this utility class implicitly adds the optionaluidandon_timeargs and an additionalrowtimecolumn in the output. Additionally, it adds a validation layer for complexStaticArguments.
-
-
Field Summary
Fields Modifier and Type Field Description static StringPROCESS_TABLE_FUNCTION_ARG_ON_TIMEstatic intPROCESS_TABLE_FUNCTION_ARG_ON_TIME_OFFSETstatic StringPROCESS_TABLE_FUNCTION_ARG_UIDstatic intPROCESS_TABLE_FUNCTION_ARG_UID_OFFSETstatic StringPROCESS_TABLE_FUNCTION_RESULT_ROWTIMEstatic List<StaticArgument>PROCESS_TABLE_FUNCTION_SYSTEM_ARGS
-
Constructor Summary
Constructors Constructor Description SystemTypeInference()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisInvalidUidForProcessTableFunction(String uid)static TypeInferenceof(FunctionKind functionKind, TypeInference origin)
-
-
-
Field Detail
-
PROCESS_TABLE_FUNCTION_ARG_UID_OFFSET
public static final int PROCESS_TABLE_FUNCTION_ARG_UID_OFFSET
- See Also:
- Constant Field Values
-
PROCESS_TABLE_FUNCTION_ARG_UID
public static final String PROCESS_TABLE_FUNCTION_ARG_UID
- See Also:
- Constant Field Values
-
PROCESS_TABLE_FUNCTION_ARG_ON_TIME_OFFSET
public static final int PROCESS_TABLE_FUNCTION_ARG_ON_TIME_OFFSET
- See Also:
- Constant Field Values
-
PROCESS_TABLE_FUNCTION_ARG_ON_TIME
public static final String PROCESS_TABLE_FUNCTION_ARG_ON_TIME
- See Also:
- Constant Field Values
-
PROCESS_TABLE_FUNCTION_SYSTEM_ARGS
public static final List<StaticArgument> PROCESS_TABLE_FUNCTION_SYSTEM_ARGS
-
PROCESS_TABLE_FUNCTION_RESULT_ROWTIME
public static final String PROCESS_TABLE_FUNCTION_RESULT_ROWTIME
- See Also:
- Constant Field Values
-
-
Method Detail
-
of
public static TypeInference of(FunctionKind functionKind, TypeInference origin)
-
isInvalidUidForProcessTableFunction
public static boolean isInvalidUidForProcessTableFunction(String uid)
-
-