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

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

                Author: ASF GitHub Bot
            Created on: 25/May/22 20:52
            Start Date: 25/May/22 20:52
    Worklog Time Spent: 10m 
      Work Description: damccorm commented on code in PR #17755:
URL: https://github.com/apache/beam/pull/17755#discussion_r882106313


##########
sdks/go/pkg/beam/core/runtime/exec/sdf.go:
##########
@@ -308,7 +308,12 @@ func (n *TruncateSizedRestriction) StartBundle(ctx 
context.Context, id string, d
 //     Timestamps
 //    }
 func (n *TruncateSizedRestriction) ProcessElement(ctx context.Context, elm 
*FullValue, values ...ReStream) error {
-       mainElm := elm.Elm.(*FullValue).Elm.(*FullValue)
+       mainElm := elm.Elm.(*FullValue)
+       inp := mainElm.Elm
+       if e, ok := mainElm.Elm.(*FullValue); ok {

Review Comment:
   Sorry, that was very unclear on my part - I meant update the input diagram





Issue Time Tracking
-------------------

    Worklog Id:     (was: 774807)
    Time Spent: 7h 40m  (was: 7.5h)

> [Go SDK] Truncating SDFs during drain
> -------------------------------------
>
>                 Key: BEAM-11106
>                 URL: https://issues.apache.org/jira/browse/BEAM-11106
>             Project: Beam
>          Issue Type: Sub-task
>          Components: sdk-go
>            Reporter: Robert Burke
>            Assignee: Ritesh Ghorse
>            Priority: P3
>             Fix For: 2.39.0
>
>          Time Spent: 7h 40m
>  Remaining Estimate: 0h
>
> Allow SDFs to specify a restriction truncation method to permit faster drains.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to