[
https://issues.apache.org/jira/browse/BEAM-4255?focusedWorklogId=100323&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-100323
]
ASF GitHub Bot logged work on BEAM-4255:
----------------------------------------
Author: ASF GitHub Bot
Created on: 09/May/18 23:14
Start Date: 09/May/18 23:14
Worklog Time Spent: 10m
Work Description: huygaa11 commented on a change in pull request #5311:
[BEAM-4255] Set singleton view writers' accumulation mode to discarding
URL: https://github.com/apache/beam/pull/5311#discussion_r187202199
##########
File path:
sdks/java/core/src/main/java/org/apache/beam/sdk/transforms/Combine.java
##########
@@ -1283,6 +1283,10 @@ private GloballyAsSingletonView(
insertDefault,
insertDefault ? fn.defaultValue() : null,
combined.getCoder());
+
+ // GBK's inside view writers for singleton view should discard previous
values.
+
materializationInput.setWindowingStrategyInternal(input.getWindowingStrategy()
Review comment:
`Window.configure()` does not seem to work. I will take a little break from
this bug and re-visit it soon.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 100323)
Time Spent: 40m (was: 0.5h)
> 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
> Priority: Major
> Fix For: 3.0.0
>
> Time Spent: 40m
> 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
(v7.6.3#76005)