You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Adam Lippai (Jira)" <ji...@apache.org> on 2020/09/19 23:49:00 UTC

[jira] [Updated] (ARROW-10045) Pandas -> PyArrow ->JS

     [ https://issues.apache.org/jira/browse/ARROW-10045?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adam Lippai updated ARROW-10045:
--------------------------------
    Description: 
Does the JS Table reader work?

I return pa.serialize(pa.Table.from_pandas(df)).to_buffer().to_pybytes() as application/octet-stream from a HTTP endpoint.

Then using Javascript I try to read it:

const table = await Table.from(fetch(("/myendpoint")));
 console.log(table.toString());

but it prints only [object Object] and using the debugger shows an empty&unusable table. Schema and data is empty, the column with the given name is not found.

It doesn't throw any error. 

How is this supposed to work? Do I miss something on the python or JS side?

  was:
Does the JS Table reader work?

I return pa.serialize(pa.Table.from_pandas(df)).to_buffer().to_pybytes() as application/octet-stream from a HTTP endpoint.

Then using Javascript:

const table = await Table.from(fetch(("/myendpoint")));
console.log(table.toString());

but it prints only [object Object] and using the debugger shows an empty&unusable table. Schema and data is empty, the column with the given name is not found.

It doesn't throw any error. 

How is this supposed to work? Do I miss something on the python or JS side?


> Pandas -> PyArrow ->JS
> ----------------------
>
>                 Key: ARROW-10045
>                 URL: https://issues.apache.org/jira/browse/ARROW-10045
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: JavaScript
>    Affects Versions: 1.0.1
>            Reporter: Adam Lippai
>            Priority: Major
>
> Does the JS Table reader work?
> I return pa.serialize(pa.Table.from_pandas(df)).to_buffer().to_pybytes() as application/octet-stream from a HTTP endpoint.
> Then using Javascript I try to read it:
> const table = await Table.from(fetch(("/myendpoint")));
>  console.log(table.toString());
> but it prints only [object Object] and using the debugger shows an empty&unusable table. Schema and data is empty, the column with the given name is not found.
> It doesn't throw any error. 
> How is this supposed to work? Do I miss something on the python or JS side?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)