Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
This issue continues the work that was started in FLINK-11449. It distinguishes between function with implementation (UDFs) and function with no implementation.
The rough design looks as follows:
1. `interface FunctionDefinition` --> general interface for describing a function --> goal: separation of runtime and planning/optimization --> long-term methods: `getKind()` (aggregate, scalar, table), `getTypeInference()` 2. `interface UserDefinedFunctionDefinition extends FunctionDefinition` --> interface for describing a function with implementation --> methods: `createImplementation(): UserDefinedFunction` --> default: getTypeInference() = Util.DEFAULT_INFERENCE // future work 3. `class BuiltInFunctionDefinition implements FunctionDefinition` --> class for describing a function where the planner provides an implementation --> methods: `getName(): String` 4. Add `getKind` to `AggregateFunction`, `ScalarFunction`, `TableFunction`
Attachments
Attachments
Issue Links
- links to