[
https://issues.apache.org/jira/browse/FLINK-34406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18091377#comment-18091377
]
Chen Zhang edited comment on FLINK-34406 at 6/27/26 12:24 PM:
--------------------------------------------------------------
-Any updates for this ticket, I have similar demand for getting num of parallel
subtasks from runtime context.-
It seems this ticket is already implemented in FLINK-35652. It can be closed.
was (Author: JIRAUSER313150):
Any updates for this ticket, I have similar demand for getting num of parallel
subtasks from runtime context.
> Expose RuntimeContext in FunctionContext
> ----------------------------------------
>
> Key: FLINK-34406
> URL: https://issues.apache.org/jira/browse/FLINK-34406
> Project: Flink
> Issue Type: New Feature
> Components: Table SQL / API
> Affects Versions: 1.19.0
> Reporter: yisha zhou
> Priority: Major
>
> When I implement a LookupFunction and utilize a RateLimiter in it, I need to
> open the RateLimiter in the open function. And I can only get a
> FunctionContext in the function.
> However the RateLimiter needs to call getNumberOfParallelSubtasks of
> RuntimeContext to get the parallelism of the job, so that it can calculate
> the flow limitation for each subtask.
> Actually, getMetricGroup, getUserCodeClassLoader and so many FunctionContext
> functionalities all come from RuntimeContext. Why not just expose the
> RuntimeContext here?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)