reuvenlax commented on code in PR #27891:
URL: https://github.com/apache/beam/pull/27891#discussion_r1293894740


##########
runners/google-cloud-dataflow-java/src/main/java/org/apache/beam/runners/dataflow/DataflowPipelineTranslator.java:
##########
@@ -936,8 +937,9 @@ private <K, V> void groupByKeyHelper(
                     && windowingStrategy.getWindowFn().assignsToOneWindow();
             if (isStreaming) {
               allowCombinerLifting &= transform.fewKeys();
-              // TODO: Allow combiner lifting on the non-default trigger, as 
appropriate.
-              allowCombinerLifting &= (windowingStrategy.getTrigger() 
instanceof DefaultTrigger);
+              // We don't currently have a good way to safely lift combiners 
in the face of count triggers, as we will
+              // lose track of how many elements have been combined.
+              allowCombinerLifting &= 
!containsCountTrigger(windowingStrategy.getTrigger());

Review Comment:
   I thing we should probably add a flag that allows disabling this behavior, 
and note in release notes that Dataflow update might require setting this flag 
for compatibility.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to