I register my job parameters as flink global parameters, and I need to get those parameters in udf's open method like:


I know in DataStream API there are test harnesses to test user-defined functions as shows in docs:


So I wonder is there a similar way in Table/SQL API to set global parameters?

On 5/12/2022 19:29Zhanghao Chen<zhanghao.c...@outlook.com> wrote:
Hi,

What kind of parameters do you want to get, Flink global job parameters, or some other parameters?

Best,
Zhanghao Chen

From: zhouhaifengmath <zhouhaifengm...@gmail.com>
Sent: Thursday, May 12, 2022 14:33
To: user@flink.apache.org <user@flink.apache.org>
Subject: How to test Flink SQL UDF with open method?
 
Hi,
I am trying to test a flink sql udf which has open method to get some parameters with Flink1.14, but i can't find an example to set those parameters in a test. Can someone give me a example on this question? Thanks for your help~

Thanks && Regards

Reply via email to