Re: [PyFlink] update udf functions on the fly

2020-10-12 Thread Sharipov, Rinat
Hi Dian, thx for your reply ! I was wondering to replace UDF on the fly from Flink, of course I'm pretty sure that it's possible to implement update logic directly in Python, thx for idea Regards, Rinat пн, 12 окт. 2020 г. в 14:20, Dian Fu : > Hi Rinat, > > Do you want to replace the UDFs with

Re: [PyFlink] update udf functions on the fly

2020-10-12 Thread Dian Fu
Hi Rinat, Do you want to replace the UDFs with new ones on the fly or just want to update the model which could be seen as instance variables inside the UDF? For the former case, it's not supported AFAIK. For the latter case, I think you could just update the model in the UDF periodically or

Re: [PyFlink] update udf functions on the fly

2020-10-12 Thread Sharipov, Rinat
Hi Arvid, thx for your reply. We are already using the approach with control streams to propagate business rules through our data-pipeline. Because all our models are powered by Python, I'm going to use Table API and register UDF functions, where each UDF is a separate model. So my question is

Re: [PyFlink] update udf functions on the fly

2020-10-12 Thread Arvid Heise
Hi Rinat, Which API are you using? If you use datastream API, the common way to simulate side inputs (which is what you need) is to use a broadcast. There is an example on SO [1]. [1]

[PyFlink] update udf functions on the fly

2020-10-10 Thread Sharipov, Rinat
Hi mates ! I'm in the beginning of the road of building a recommendation pipeline on top of Flink. I'm going to register a list of UDF python functions on job startups where each UDF is an ML model. Over time new model versions appear in the ML registry and I would like to update my UDF