[ 
https://issues.apache.org/jira/browse/FLINK-4993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15701750#comment-15701750
 ] 

ASF GitHub Bot commented on FLINK-4993:
---------------------------------------

Github user aljoscha commented on the issue:

    https://github.com/apache/flink/pull/2881
  
    @StephanEwen Thanks for reviewing! And you're right, 
`TriggerResult.merge()` can be removed. I'll do so when merging.


> Don't Allow Trigger.onMerge() to return TriggerResult
> -----------------------------------------------------
>
>                 Key: FLINK-4993
>                 URL: https://issues.apache.org/jira/browse/FLINK-4993
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Streaming
>            Reporter: Aljoscha Krettek
>            Assignee: Aljoscha Krettek
>
> Allowing {{Trigger.onMerge()}} to return a {{TriggerResult}} is not necessary 
> since an {{onMerge()}} call will always be followed by an {{onElement()}} 
> call when adding the element that caused the merging to the merged window. 
> Having this complicates the internal logic of the {{WindowOperator}} and 
> makes writing Triggers more confusing than it has to be.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to