[
https://issues.apache.org/jira/browse/FLINK-14274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16940768#comment-16940768
]
Jark Wu commented on FLINK-14274:
---------------------------------
I agree with [~ykt836], we can definitely add more reasonable methods in
FunctionContext, but state methods is not one of them.
For example, adding methods for taskName and taskIndex and configurations make
sense to me.
> RuntimeContext can be get from FunctionContext
> -----------------------------------------------
>
> Key: FLINK-14274
> URL: https://issues.apache.org/jira/browse/FLINK-14274
> Project: Flink
> Issue Type: Improvement
> Components: Table SQL / API
> Affects Versions: 1.9.0
> Reporter: hailong wang
> Priority: Major
> Fix For: 1.10.0
>
>
> Now, we can get metricGroup、cachedFile and jobParameter from functionContext
> in UDF. If we expose runtimeContext from functionContext, user can get more
> useful variable such as state.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)