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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

Shang Yuanchun (Jira)
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)