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

GloballyAsSingletonView is writing multiple values to the SingletonView

Details

    • Bug
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • 2.4.0
    • 3.0.0
    • sdk-java-core

    Description

      The code snippet below is writing multiple values to the sideInput. Resulting in exception: "PCollection with more than one element accessed as a singleton view."

      PCollectionView<Integer> globalView = input
      .apply(Window.<Integer>into(new GlobalWindows())
          .triggering(Repeatedly.forever(AfterPane.elementCountAtLeast(1)))
          .accumulatingFiredPanes())
      .apply(Sum.integersGlobally().asSingletonView())

       

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              huygaa Batkhuyag Batsaikhan
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 10m
                  1h 10m