[
https://issues.apache.org/jira/browse/BEAM-11106?focusedWorklogId=774882&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-774882
]
ASF GitHub Bot logged work on BEAM-11106:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 26/May/22 02:24
Start Date: 26/May/22 02:24
Worklog Time Spent: 10m
Work Description: riteshghorse commented on code in PR #17755:
URL: https://github.com/apache/beam/pull/17755#discussion_r882260463
##########
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:
This happened in drain test. The error:
```
2022-05-26T02:11:51.259867256Zprocess bundle failed for instruction
process_bundle-9-17 using plan drain-S02-5 : panic: interface conversion:
interface {} is []uint8, not *exec.FullValue
```
Issue Time Tracking
-------------------
Worklog Id: (was: 774882)
Time Spent: 8h (was: 7h 50m)
> [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
> 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)