You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "hailong wang (Jira)" <ji...@apache.org> on 2019/10/16 09:36:00 UTC

[jira] [Created] (FLINK-14408) In OldPlanner, UDF open method can not be invoke when SQL is optimized

hailong wang created FLINK-14408:
------------------------------------

             Summary: In OldPlanner, UDF open method can not be invoke when SQL is optimized
                 Key: FLINK-14408
                 URL: https://issues.apache.org/jira/browse/FLINK-14408
             Project: Flink
          Issue Type: Improvement
          Components: Table SQL / Planner
    Affects Versions: 1.9.0
            Reporter: hailong wang
             Fix For: 1.10.0


For now, UDF open method can not be invoked when SQL is optimized. For example, a SQL as follow:
{code:java}
SELECT MyUdf(1) as constantValue FROM MyTable
{code}
MyUdf.open can not be invoked in OldPlanner.

So, we can construct a constantFunctionContext or a constantRuntimeContext and invoke it just like BlinkPlanner.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)