You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Matthew Topol (Jira)" <ji...@apache.org> on 2022/03/16 16:38:00 UTC

[jira] [Commented] (ARROW-15553) Possible bug with array.TableReader

    [ https://issues.apache.org/jira/browse/ARROW-15553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17507721#comment-17507721 ] 

Matthew Topol commented on ARROW-15553:
---------------------------------------

[~chubbard@adapdix.com] can you test this using Arrow v7? While you're right that this is a bug in the Arrow code, it appears (from my own testing) that this bug was fixed in arrow v7.

You should be able to upgrade to arrow v7 using `go get github.com/apache/arrow/go/v7@latest` and then changing your import paths to use `v7` instead of `v6`.

> Possible bug with array.TableReader
> -----------------------------------
>
>                 Key: ARROW-15553
>                 URL: https://issues.apache.org/jira/browse/ARROW-15553
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Go
>    Affects Versions: 6.0.1
>         Environment: ubuntu20.04, go1.16.13
>            Reporter: Charlie Hubbard
>            Priority: Major
>         Attachments: chunksize.go
>
>
> I'm writing an array of int32 to a byte buffer using an array.TableReader and  ipc.Writer. The array is  [1, 2, 3 (null), 4].
> I then read it back from the byte buffer using an ipc.Reader.
> If the chunk size of the array.TableReader is smaller than the size of the array, the null is ignored.
> I read back `[1, 2,3, 4]`.
> Is this a bug in my code or apache arrow?
> Code attached.
>  



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