You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Timo Walther (JIRA)" <ji...@apache.org> on 2019/06/18 14:11:00 UTC
[jira] [Closed] (FLINK-12711) Separate function implementation and
definition
[ https://issues.apache.org/jira/browse/FLINK-12711?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Timo Walther closed FLINK-12711.
--------------------------------
Resolution: Fixed
Fix Version/s: 1.9.0
Fixed in 1.9.0: 86ebb26f924ee114d0bda0a3665c5efc512bd932
> Separate function implementation and definition
> -----------------------------------------------
>
> Key: FLINK-12711
> URL: https://issues.apache.org/jira/browse/FLINK-12711
> Project: Flink
> Issue Type: Sub-task
> Components: Table SQL / API
> Reporter: Timo Walther
> Assignee: Timo Walther
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.9.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 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:
> {noformat}
> 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`
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)