Hi,
Does the flink community have a plan to support flink sql udf in any language? For example, a udf in c or php. Because in my company, many developers do not know java or scala, they use c in their usual work. Now we have a workaround to support this situation by creating a process running the c logic, and the process communicates with flink sql by a wrapper udf function. So, here I have two questions: 1.
Does the flink community have a plan to support flink sql udf in any language?
2. If the answer to question 1 is no, is there any possibility to push our solution to flink? Is this udf process staff in line with the ideas of the community aboud flink sql? Thanks Yours Sincerely Josh |
Hi Josh, Currently Flink supports Java, Scala and Python for defining SQL UDFs. There are no concrete plans to extend the set of supported languages at the moment. In general, these kinds of contributions are always welcome. What we have to make sure is to see how it fits into the overall story. In order to assess this, I would recommend writing to [hidden email] to propose your idea and the solution proposal. Cheers, Till On Thu, Dec 17, 2020 at 11:53 AM Joshua Fan <[hidden email]> wrote:
|
Just a quick idea for using C. I'd create a generic Java UDF and use JNA [1] in it to call a function written in C. UDF could be something like invokeC("libraryName", "functionName", args) and would get JNA's Function [2] and invoke it accordingly. On Thu, Dec 17, 2020 at 1:45 PM Till Rohrmann <[hidden email]> wrote:
-- Arvid Heise | Senior Java Developer Follow us @VervericaData -- Join Flink Forward - The Apache Flink Conference Stream Processing | Event Driven | Real Time -- Ververica GmbH | Invalidenstrasse 115, 10115 Berlin, Germany -- Ververica GmbHRegistered at Amtsgericht Charlottenburg: HRB 158244 B Managing Directors: Timothy Alexander Steinert, Yip Park Tung Jason, Ji (Toni) Cheng |
Free forum by Nabble | Edit this page |