Robert Burke created BEAM-13239:
-----------------------------------

             Summary: [Go SDK] Schema Row Decoder doesn't properly handle io.EOF
                 Key: BEAM-13239
                 URL: https://issues.apache.org/jira/browse/BEAM-13239
             Project: Beam
          Issue Type: Bug
          Components: sdk-go
    Affects Versions: 2.33.0, 2.34.0
            Reporter: Robert Burke


The Schema Row Decoder doesn't properly handle io.EOF errors, and ends up 
incorrectly wrapping them. This breaks Iterable processing which checks for 
io.EOF (generally common for all go io processing really). 

https://github.com/apache/beam/blob/master/sdks/go/pkg/beam/core/graph/coder/row_decoder.go#L108

Simple fix. Needs to check for io.EOF first, before re-wrapping.

errors.Wrapf ignores nils and returns a nil in when passed one, so it's 
immeadiate use is fine. 



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to