[
https://issues.apache.org/jira/browse/FLINK-14408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated FLINK-14408:
-----------------------------------
Labels: pull-request-available (was: )
> 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 / Legacy Planner
> Affects Versions: 1.9.0
> Reporter: hailong wang
> Assignee: hailong wang
> Priority: Major
> Labels: pull-request-available
> 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)