pitrou commented on issue #40128:
URL: https://github.com/apache/arrow/issues/40128#issuecomment-1954197598
We do:
```python
>>> a = pa.array([1,2,3,1]).dictionary_encode()
>>> pc.coalesce(a[:1])
<pyarrow.lib.DictionaryArray object at 0x7f0ef4948ba0>
-- dictionary:
[
1,
2,
3
]
-- indices:
[
0
]
>>> pc.coalesce(a[:0])
<pyarrow.lib.DictionaryArray object at 0x7f0ef49d70d0>
-- dictionary:
[]
-- indices:
[]
```
--
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]