Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-6370

[JS] Table.from adds 0 on int columns

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Bug
    • 0.14.1
    • None
    • JavaScript
    • None

    Description

      I am generating an arrow table in pyarrow and send it via gRPC like this:

      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()]   
      )
      

      On the javascript end, I parse it like that:

       Table.from(response.getResponseList()[0])
      

      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. 

      Attachments

        Activity

          People

            Unassigned Unassigned
            saschahofmann Sascha Hofmann
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: