Robert Burke created BEAM-11085:
-----------------------------------

             Summary: [Go SDK] Windows are correctly observed in DoFns.
                 Key: BEAM-11085
                 URL: https://issues.apache.org/jira/browse/BEAM-11085
             Project: Beam
          Issue Type: Sub-task
          Components: sdk-go
            Reporter: Robert Burke


Add a simple unit test to validate that user DoFns can observe windows. 

In particular add a Go unit test to the exec package, in the style of the ParDo 
execution  unit test 
[https://github.com/apache/beam/blob/master/sdks/go/pkg/beam/core/runtime/exec/pardo_test.go#L50]
 
This requires writing a small but observable DoFn that observes windows, and 
configures inputs to achieve expected outputs for given window assignements. 
There may be a need to add a utility functions to configure the windows and 
event times in a FullValue conveniently for the test.

Tests should cover single and multiple windows cases.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to