Batkhuyag Batsaikhan created BEAM-4255:
------------------------------------------
Summary: GloballyAsSingletonView is writing multiple values to the
SingletonView
Key: BEAM-4255
URL: https://issues.apache.org/jira/browse/BEAM-4255
Project: Beam
Issue Type: Bug
Components: sdk-java-core
Affects Versions: 2.4.0
Reporter: Batkhuyag Batsaikhan
Assignee: Batkhuyag Batsaikhan
Fix For: 3.0.0
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())
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)