csjh opened a new issue, #68:
URL: https://github.com/apache/arrow-js/issues/68

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   Hello! Continuing from kylebarron/arrow-wasm#58.
   
   Using `tableToIPC` on a table with a `Bool` column that is fully null 
produces bytes that are incompatible with `arrow-rs` and `pyarrow` (presumably 
others, but those are the tested ones).
   
   Reproduction:
   ```js
   import {
        vectorFromArray,
        Table,
        Bool,
        tableToIPC
   } from 'apache-arrow';
   
   const table = new Table({ x: vectorFromArray([null, null], new Bool()) });
   table.schema.fields[0].nullable = true;
   
   console.log(tableToIPC(table).join(', '));
   ```
   ```py
   import pyarrow as pa
   
   reader = pa.ipc.open_stream(bytes([<bytes from the serialized table>]))
   table = reader.read_all()
   
   # x: [<Invalid array: Buffer apache/arrow#1 too small in array of type bool 
and length 2: expected at least 1 byte(s), got 0>]
   print(table)
   ```
   
   It appears to be a Javascript-only bug, as there are 2 `pyarrow` null `Bool` 
column examples that work fine.
   
   Version: 15.0.0
   
   ### Component(s)
   
   JavaScript


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to