FancyAlex opened a new issue, #34619: URL: https://github.com/apache/arrow/issues/34619
### Describe the bug, including details regarding any error messages,
version, and platform.
Version pyarrow=11.0.0 on Debian 5.10.162.
```
import pyarrow as pa
import pyarrow.compute as pc
class MyEnum(pa.ExtensionType):
def __init__(self):
super().__init__(pa.dictionary(pa.int32(), pa.string()), "MyEnum")
def __arrow_ext_serialize__(self):
return b''
@classmethod
def __arrow_ext_deserialize__(cls, storage_type, serialized):
return cls()
arr = pa.array(["a", "b", "a", "c"]).dictionary_encode()
print(pc.take(arr, [0, 1]))
# <pyarrow.lib.DictionaryArray object at 0x7ffa8fee3bc0>
#
# -- dictionary:
# [
# "a",
# "b",
# "c"
# ]
# -- indices:
# [
# 0,
# 1
# ]
ext = pa.ExtensionArray.from_storage(MyEnum(), arr)
pc.take(ext, [0, 1])
# WARNING: Logging before InitGoogleLogging() is written to STDERR
# F20230317 10:59:30.370121 2048457 array_dict.cc:83] Check failed:
(data->dictionary) != (nullptr)
# *** Check failure stack trace: ***
# Aborted
```
### Component(s)
C++
--
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]
