You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Batkhuyag Batsaikhan (JIRA)" <ji...@apache.org> on 2018/05/08 01:28:00 UTC
[jira] [Created] (BEAM-4255) GloballyAsSingletonView is writing
multiple values to the SingletonView
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)