[ 
https://issues.apache.org/jira/browse/BEAM-9624?focusedWorklogId=412793&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-412793
 ]

ASF GitHub Bot logged work on BEAM-9624:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 31/Mar/20 02:49
            Start Date: 31/Mar/20 02:49
    Worklog Time Spent: 10m 
      Work Description: lukecwik commented on pull request #11271: [BEAM-9624] 
Adds Convert to Accumulators operator for use in combiner lifting for streaming 
pipelines
URL: https://github.com/apache/beam/pull/11271#discussion_r400610628
 
 

 ##########
 File path: sdks/go/pkg/beam/core/runtime/exec/combine.go
 ##########
 @@ -499,3 +499,30 @@ func (n *ExtractOutput) ProcessElement(ctx 
context.Context, value *FullValue, va
        }
        return n.Out.ProcessElement(n.Combine.ctx, &FullValue{Windows: 
value.Windows, Elm: value.Elm, Elm2: out, Timestamp: value.Timestamp})
 }
+
+// ConvertToAccumulators is an executor for converting an input value to an 
accumulator value.
+type ConvertToAccumulators struct {
+       *Combine
+}
+
+func (n *ConvertToAccumulators) String() string {
 
 Review comment:
   Please add a test like Combine/LiftedCombine: 
https://github.com/apache/beam/blob/c8e200b157b43ad471c9480f8f617d9fbef33070/sdks/go/pkg/beam/core/runtime/exec/combine_test.go#L84
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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: 412793)
    Time Spent: 0.5h  (was: 20m)

> Combine operation should support only converting to accumulators
> ----------------------------------------------------------------
>
>                 Key: BEAM-9624
>                 URL: https://issues.apache.org/jira/browse/BEAM-9624
>             Project: Beam
>          Issue Type: Improvement
>          Components: runner-core
>            Reporter: Andrew Crites
>            Assignee: Andrew Crites
>            Priority: Major
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> For streaming pipelines, we want to be able to lift the combiner into the 
> MergeBuckets without having to also do a PartialGroupByKey before the 
> shuffle. We don't want to do the PGBK since it could cause non-deterministic 
> results when used with some triggers.
> We propose adding a new URN for doing just the convert to accumulators step 
> and adding support for it in Java/Python/Go.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to