youngoli commented on a change in pull request #13013:
URL: https://github.com/apache/beam/pull/13013#discussion_r500671989



##########
File path: sdks/go/pkg/beam/core/runtime/exec/pardo.go
##########
@@ -134,40 +134,40 @@ func (n *ParDo) processMainInput(mainIn *MainInput) error 
{
        // If the function observes windows, we must invoke it for each window. 
The expected fast path
        // is that either there is a single window or the function doesn't 
observes windows.

Review comment:
       Done, added some comments making this optimization more explicit.

##########
File path: sdks/go/pkg/beam/core/runtime/exec/sdf_test.go
##########
@@ -400,6 +400,90 @@ func TestAsSplittableUnit(t *testing.T) {
        if err != nil {
                t.Fatalf("invalid function: %v", err)
        }
+       //wdfn, err := graph.NewDoFn(&VetWindowSdf{}, 
graph.NumMainInputs(graph.MainSingle))

Review comment:
       Done.




----------------------------------------------------------------
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.

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


Reply via email to