You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@arrow.apache.org by "Sascha Hofmann (Jira)" <ji...@apache.org> on 2019/08/27 17:23:00 UTC
[jira] [Created] (ARROW-6370) [JS] Table.from adds 0 on int columns
Sascha Hofmann created ARROW-6370:
-------------------------------------
Summary: [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
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)