[
https://issues.apache.org/jira/browse/BEAM-11106?focusedWorklogId=774885&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-774885
]
ASF GitHub Bot logged work on BEAM-11106:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 26/May/22 02:32
Start Date: 26/May/22 02:32
Worklog Time Spent: 10m
Work Description: riteshghorse commented on code in PR #17755:
URL: https://github.com/apache/beam/pull/17755#discussion_r882263387
##########
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:
It looks like we do the similar thing in
`ProcessSizedElementsAndRestriction` which has a similar input and output
structure
https://github.com/apache/beam/blob/fd8546355523f67eaddc22249606fdb982fe4938/sdks/go/pkg/beam/core/runtime/exec/sdf.go#L477
Issue Time Tracking
-------------------
Worklog Id: (was: 774885)
Time Spent: 8h 10m (was: 8h)
> [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: 8h 10m
> 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)