You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Damien Desfontaines (JIRA)" <ji...@apache.org> on 2019/04/26 15:30:00 UTC

[jira] [Created] (BEAM-7163) Godoc for passert.Sum seems wrong

Damien Desfontaines created BEAM-7163:
-----------------------------------------

             Summary: Godoc for passert.Sum seems wrong
                 Key: BEAM-7163
                 URL: https://issues.apache.org/jira/browse/BEAM-7163
             Project: Beam
          Issue Type: Improvement
          Components: sdk-go
            Reporter: Damien Desfontaines


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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)