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

The Java DirectRunner should exercise all parts of a CombineFn

Details

    • Bug
    • Status: Resolved
    • P2
    • Resolution: Fixed
    • None
    • 2.2.0
    • runner-direct
    • None

    Description

      Specifically it should:

      Create some number of accumulators; add elements to these accumulators, merge the created accumulators, and extract the output.

      This can be performed by replacing the Combine.perKey composite transform with a multi-step combine CombineBundles -> GroupByKey -> MergeAccumulators

      Where CombineBundles is a ParDo which takes input KV<K, InputT> and produces KV<K, AccumT>, outputting in FinishBundle (this can only be performed if the Combine takes no side inputs or does not have merging windows). MergeAccumulators takes in KV<K, Iterable<AccumT>> and produces KV<K, OutputT> by merging all of the accumulators and extracting the output.

      Attachments

        Issue Links

          Activity

            People

              tgroh Thomas Groh
              tgroh Thomas Groh
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: