[
https://issues.apache.org/jira/browse/BEAM-11106?focusedWorklogId=774798&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-774798
]
ASF GitHub Bot logged work on BEAM-11106:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 25/May/22 20:01
Start Date: 25/May/22 20:01
Worklog Time Spent: 10m
Work Description: riteshghorse commented on code in PR #17755:
URL: https://github.com/apache/beam/pull/17755#discussion_r882066312
##########
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:
I though that as well. But running sdf_test/TruncateRestriction/SingleValue
throws an error that it expects an int (whatever the input type is) instead of
a FullValue. For the KeyValue it works fine.
Issue Time Tracking
-------------------
Worklog Id: (was: 774798)
Time Spent: 7.5h (was: 7h 20m)
> [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: 7.5h
> 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)