Python UDF's in DataStream API?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Python UDF's in DataStream API?

Edward
Is there any plan to allow Python UDF's within the DataStream API (as opposed to an entire job defined in Python)? FLIP-130 discusses Python support for the DataStream API, but it's not clear whether this will include the ability to have a single Python UDF (similar to FLIP-58, but for DataSteam API, not Table API)

Sent from the Apache Flink User Mailing List archive. mailing list archive at Nabble.com.
Reply | Threaded
Open this post in threaded view
|

Re: Python UDF's in DataStream API?

Dian Fu
Hi Edward,

Do you mean that using Python UDF in the Java DataStream API job? If so, there is still no plan to support this directly in the Java DataStream API.

However, there is one way to achieve this as it supports to use Python UDF in the Java Table API, so you can do as following:
- Convert DataStream to Table
- Use Python UDF in the Table API
- Convert Table back to DataStream

You can refer [1] for more details on how to use Python UDF in the Java Table API.


Regards,
Dian

在 2020年9月17日,上午2:38,Edward <[hidden email]> 写道:

Is there any plan to allow Python UDF's within the DataStream API (as opposed to an entire job defined in Python)? FLIP-130 discusses Python support for the DataStream API, but it's not clear whether this will include the ability to have a single Python UDF (similar to FLIP-58, but for DataSteam API, not Table API)

Sent from the Apache Flink User Mailing List archive. mailing list archive at Nabble.com.