You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Kenneth Knowles (Jira)" <ji...@apache.org> on 2020/10/09 16:38:00 UTC
[jira] [Commented] (BEAM-4255) GloballyAsSingletonView is writing
multiple values to the SingletonView
[ https://issues.apache.org/jira/browse/BEAM-4255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17211152#comment-17211152 ]
Kenneth Knowles commented on BEAM-4255:
---------------------------------------
As mentioned on the PR, side inputs just don't work very well with triggers.
> 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
> Priority: P3
> Fix For: 3.0.0
>
> Time Spent: 1h 10m
> Remaining Estimate: 0h
>
> 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
(v8.3.4#803005)