[jira] [Created] (FLINK-20616) Support Row-based Operation Accept Function Name

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-20616) Support Row-based Operation Accept Function Name

Shang Yuanchun (Jira)
Huang Xingbo created FLINK-20616:
------------------------------------

             Summary: Support Row-based Operation Accept Function Name
                 Key: FLINK-20616
                 URL: https://issues.apache.org/jira/browse/FLINK-20616
             Project: Flink
          Issue Type: Sub-task
          Components: API / Python
            Reporter: Huang Xingbo
             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):
    args # Row(a:Int, b: Int)
    return 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)