Github user zentol commented on a diff in the pull request:

    https://github.com/apache/flink/pull/3487#discussion_r104896041
  
    --- Diff: 
flink-core/src/main/java/org/apache/flink/api/common/functions/util/AbstractRuntimeUDFContext.java
 ---
    @@ -97,10 +97,16 @@ public int getNumberOfParallelSubtasks() {
        }
     
        @Override
    +   public int getMaxNumberOfParallelSubtasks() {
    +           // Number of KeyGroups is same with max-parallelism currently.
    +           return taskInfo.getNumberOfKeyGroups();
    --- End diff --
    
    what does this return for the batch API, which doesn't have key-groups? 
(ideally it should ```getNumberOFParallelSubtasks()```.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to