You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Paul Taylor (Jira)" <ji...@apache.org> on 2019/09/04 18:20:00 UTC
[jira] [Closed] (ARROW-6370) [JS] Table.from adds 0 on int columns
[ https://issues.apache.org/jira/browse/ARROW-6370?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Taylor closed ARROW-6370.
------------------------------
Resolution: Not A Bug
> [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)