[
https://issues.apache.org/jira/browse/FLINK-20616?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dian Fu closed FLINK-20616.
---------------------------
Resolution: Fixed
Merge to master via 467a0d139a28827132d054b5b45cb1153cfb3be4
> Support row-based operation to accept user-defined function directly
> --------------------------------------------------------------------
>
> Key: FLINK-20616
> URL: https://issues.apache.org/jira/browse/FLINK-20616
> Project: Flink
> Issue Type: Sub-task
> Components: API / Python
> Reporter: Huang Xingbo
> Assignee: Huang Xingbo
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.13.0
>
>
> Usage
> {code:java}
> @udf(result_type=DataTypes.ROW([DataTypes.FIELD("a", DataTypes.INT()),
> DataTypes.FIELD("b", DataTypes.INT())])
> def map_func(*args):
> return Row(*args)
> t = ... # type: Table, table schema: [a: String, b: Int]
> t.map(map_func){code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)