kszucs commented on a change in pull request #10093:
URL: https://github.com/apache/arrow/pull/10093#discussion_r615430752
##########
File path: cpp/src/arrow/array/array_dict.cc
##########
@@ -80,7 +80,6 @@ int64_t DictionaryArray::GetValueIndex(int64_t i) const {
DictionaryArray::DictionaryArray(const std::shared_ptr<ArrayData>& data)
: dict_type_(checked_cast<const DictionaryType*>(data->type.get())) {
ARROW_CHECK_EQ(data->type->id(), Type::DICTIONARY);
- ARROW_CHECK_NE(data->dictionary, nullptr);
Review comment:
`array->dictionary()` lazily initializes the dictionary if it is not set
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]