Description
https://github.com/apache/beam/blob/sdks/v2.39.0/sdks/go/pkg/beam/testing/passert/count.go#L28
Since it's using a Combine to do the count, it never executes for empty Pcollections, and is unable to fail.
The fix is: when count > 0, plumb the pcollection through as a side input to a DoFn that requires the side input to be non-empty. This would catch the empty PCollection case.
Attachments
Issue Links
- links to