You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Yang Zhang (JIRA)" <ji...@apache.org> on 2019/07/18 17:10:00 UTC

[jira] [Created] (BEAM-7778) a new UDF object is constructed every time there is a message

Yang Zhang created BEAM-7778:
--------------------------------

             Summary: a new UDF object is constructed every time there is a message
                 Key: BEAM-7778
                 URL: https://issues.apache.org/jira/browse/BEAM-7778
             Project: Beam
          Issue Type: Bug
          Components: beam-events
            Reporter: Yang Zhang
            Assignee: Aizhamal Nurmamat kyzy


Hello Beamers, I want to ask a question about Beam SQL UDF. When I use the following statement to register UDF and execute sql,
{code:java}
SqlTransform.query("select capitalize([field]) from [bounded] right join [unbounded] on [condition]").registerUdf("capitalize", new SqlUDF.CapitalizeStringFn()));{code}
from my observation, every time there is an incoming message, a new UDF object is constructed. Is there a way to make this UDF object to be just created once instead of unlimited times? Thank you very much!

 



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)