[ https://issues.apache.org/jira/browse/ARROW-6370?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16917857#comment-16917857 ]
Brian Hulette commented on ARROW-6370: -------------------------------------- Yeah I suspect converting to int32 will solve your problem. But this is still a bug so I'll see if I can reproduce it :) What version of node are you using? > [JS] Table.from adds 0 on int columns > ------------------------------------- > > Key: ARROW-6370 > URL: https://issues.apache.org/jira/browse/ARROW-6370 > Project: Apache Arrow > Issue Type: Bug > Components: JavaScript > Affects Versions: 0.14.1 > Reporter: Sascha Hofmann > Priority: Major > > I am generating an arrow table in pyarrow and send it via gRPC like this: > {code:java} > sink = pa.BufferOutputStream() > writer = pa.RecordBatchStreamWriter(sink, batch.schema) > writer.write_batch(batch) > writer.close() > yield ds.Response( > status=200, > loading=False, > response=[sink.getvalue().to_pybytes()] > ) > {code} > On the javascript end, I parse it like that: > {code:java} > Table.from(response.getResponseList()[0]) > {code} > That works but when I look at the actual table, int columns have a 0 for > every other row. String columns seem to be parsed just fine. > The Python byte array created from to_pybytes() has the same length as > received in javascript. I am also able to recreate the original table for the > byte array in Python. -- This message was sent by Atlassian Jira (v8.3.2#803003)