[jira] [Created] (FLINK-21223) Support to specify the input/output types of Python UDFs via string

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

[jira] [Created] (FLINK-21223) Support to specify the input/output types of Python UDFs via string

Shang Yuanchun (Jira)
Dian Fu created FLINK-21223:
-------------------------------

             Summary: Support to specify the input/output types of Python UDFs via string
                 Key: FLINK-21223
                 URL: https://issues.apache.org/jira/browse/FLINK-21223
             Project: Flink
          Issue Type: Improvement
          Components: API / Python
            Reporter: Dian Fu


Currently, users need to specify the input/output types as following:
{code}
{{@udf(result_type=DataTypes.BIGINT())
def add(i, j):
   return i + j
}}{code}

[FLIP-65|https://cwiki.apache.org/confluence/display/FLINK/FLIP-65%3A+New+type+inference+for+Table+API+UDFs] makes it possible to support syntaxes as following:
{code}
{{@udf(result_type="BIGINT")
def add(i, j):
   return i + j
}}{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)