zeroshade commented on PR #14814:
URL: https://github.com/apache/arrow/pull/14814#issuecomment-1340126427

   @pitrou when I do round trips of the empty arrays, after fixing the crash in 
Go, I run into a few issues with pyarrow upon importing the empty array from C:
   
   The data types: `pa.binary()`, `pa.large_binary()`, `pa.string()`, 
`pa.large_string()` all throw an error when calling `validate(full=True)` after 
the `_import_from_c` that contained a null value data buffer:
   
   ```
   Traceback (most recent call last):
     File 
"/home/zeroshade/Projects/GitHub/arrow/go/arrow/cdata/test/test_export_to_cgo.py",
 line 218, in test
       b.validate(full=True)
     File "pyarrow/array.pxi", line 1501, in pyarrow.lib.Array.validate
     File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
   pyarrow.lib.ArrowInvalid: Value data buffer is null
   ```
   
   I also ran into other cases where it through an error in `_import_from_c` 
because of null values but I think those are my fault, I'm going to double 
check and try again. But I'm pretty sure those validate's shouldn't be failing 
in this case if we're saying it's acceptable for a 0-length array to contain a 
null value data buffer.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to