Hi!

Could someone tell me if this is a feature or a bug (pyarrow 17.0.0).

When I have a dictionary column:

In [15]: a1
Out[15]:
pyarrow.Table
a: dictionary<values=int64, indices=int32, ordered=0>
----
a: [  -- dictionary:
[1]  -- indices:
[0]]

I store it in parquet file:
In [16]: pq.write_table(a1, 'dict.parquet')
And read it back:
a2=pq.read_table('dict.parquet')
The column is no longer a dictionary:
In [18]: a2
Out[18]:
pyarrow.Table
a: int64
----
a: [[1]]

Best Regards,

Jacek Pliszka

Reply via email to