[
https://issues.apache.org/jira/browse/FLINK-5792?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
sunjincheng updated FLINK-5792:
-------------------------------
Description:
Currently UDF/UDTF in the codegen phase using a nonparametric constructor to
create the instance, causing the user can not include the state value in the
UDF/UDTF. The UDF/UDTF's codegen phase can use a serialized mechanism so that
the UDTF can contain state values.
1. UserDefinedFunction inherits Serializable.
2. Modify CodeGenerator about UDF/UDTF part.
3. Modify TableAPI about UDF/UDTF
4. Add Test.
was:Currently UDTF in the codegen phase using a nonparametric constructor to
create the instance, causing the user can not include the state value in the
UDTF. The UDTF's codegen phase can use a serialized mechanism so that the UDTF
can contain state values.
> Improve “UDTF" to support with parameter constructor
> ----------------------------------------------------
>
> Key: FLINK-5792
> URL: https://issues.apache.org/jira/browse/FLINK-5792
> Project: Flink
> Issue Type: Improvement
> Components: Table API & SQL
> Reporter: sunjincheng
> Assignee: sunjincheng
>
> Currently UDF/UDTF in the codegen phase using a nonparametric constructor to
> create the instance, causing the user can not include the state value in the
> UDF/UDTF. The UDF/UDTF's codegen phase can use a serialized mechanism so that
> the UDTF can contain state values.
> 1. UserDefinedFunction inherits Serializable.
> 2. Modify CodeGenerator about UDF/UDTF part.
> 3. Modify TableAPI about UDF/UDTF
> 4. Add Test.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)