Hi all,

We have been using Arrow v2.0.0 and we encountered the following issue.

I was reading a table with numeric data using pandas.read_csv and then
converting it into pyarrow table. In our application (Cylon
<https://github.com/cylondata/cylon>), we are accessing this pyarrow table
from c++. We want to access the mutable data of the arrays in the pyarrow
table.

But the following returns a nullptr.
T *mutable_data = array->data()->GetMutableValues<T>(1); // returns nullptr

Interestingly,
array->data()->buffers[1]->IsMutable(); // returns true
array->data()->buffers[1]->IsCpu(); // returns true

This only happens when I use pandas df to create a pyarrow table. It
wouldn't happen when I use pyarrow.read_csv. So, I am guessing there's some
issue in the buffer creation from pandas df.

Is this an expected behavior? or has this been resolved in v2.0< releases?

Best
-- 
Niranda Perera
https://niranda.dev/
@n1r44 <https://twitter.com/N1R44>

Reply via email to