[
https://issues.apache.org/jira/browse/FLINK-14408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16959408#comment-16959408
]
Jark Wu edited comment on FLINK-14408 at 10/25/19 8:39 AM:
-----------------------------------------------------------
1.10.0: 12996bd8ef4f83f1c31df06a13aec6512c46999b
1.9.2: e1825eebd8927ef92c73b95c95bce56fdc5f4a89
was (Author: jark):
1.10.0: 12996bd8ef4f83f1c31df06a13aec6512c46999b
> 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, 1.9.2
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 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)