Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-11084 [Go SDK] Validate Windowing
  3. BEAM-11085

[Go SDK] Windows are correctly observed in DoFns.

Details

    • Sub-task
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • None
    • Not applicable
    • sdk-go
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              damccorm Danny McCormick
              lostluck Robert Burke
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1.5h
                  1.5h