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

Resolve differences in beam:metric:element_count:v1 implementations

Details

    Description

      The element count metric represents the number of elements within a PCollection and is interpreted differently across the Beam SDK versions.

      In the Java SDK this represents the number of elements and includes how many windows those elements are in. This metric is incremented as soon as the element has been output.

      In the Python SDK this represents the number of elements and doesn't include how many windows those elements are in. The metric is also only incremented after the element has finished processing.

      The Go SDK does the same thing as Python.

      Traditionally in Dataflow this has always been the exploded window element count and the counter is incremented as soon as the element is output.

      Attachments

        Activity

          People

            Unassigned Unassigned
            lcwik Luke Cwik
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated: