| 49 | } |
| 50 | |
| 51 | void CheckDictionaryArray(const std::shared_ptr<Array>& array, |
| 52 | const std::shared_ptr<Array>& expected_values, |
| 53 | const std::shared_ptr<Array>& expected_indices) { |
| 54 | const auto& dict_array = checked_cast<const DictionaryArray&>(*array); |
| 55 | AssertArraysEqual(*expected_values, *dict_array.dictionary(), /*verbose=*/true); |
| 56 | AssertArraysEqual(*expected_indices, *dict_array.indices(), /*verbose=*/true); |
| 57 | } |
| 58 | |
| 59 | std::shared_ptr<Array> DictExtensionFromJSON(const std::shared_ptr<DataType>& type, |
| 60 | const std::string& json) { |
no test coverage detected