Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-7163

Godoc for passert.Sum seems wrong

Details

    • Improvement
    • Status: Resolved
    • P2
    • Resolution: Fixed
    • None
    • 2.23.0
    • sdk-go

    Description

      FromĀ https://godoc.org/github.com/apache/beam/sdks/go/pkg/beam/testing/passert#Sum:

      > Sum validates that the incoming PCollection<int> is a singleton with the given value.

      Why is there a size argument if the input is supposed to be a singleton?

      From the implementation, it seems that Sum sums all elements from the input PCollection (which must be int, apparently?), and checks both the number of elements and their sum.

      Attachments

        Issue Links

          Activity

            People

              kevinsijo Kevin Sijo Puthusseri
              desfontaines Damien Desfontaines
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 1h 50m
                  1h 50m