| 472 | } |
| 473 | |
| 474 | Result<std::shared_ptr<Array>> DecodeDictionary(const Array& array) { |
| 475 | const auto& dict_array = checked_cast<const DictionaryArray&>(array); |
| 476 | ARROW_ASSIGN_OR_RAISE(auto decoded_datum, |
| 477 | Take(dict_array.dictionary(), dict_array.indices())); |
| 478 | return decoded_datum.make_array(); |
| 479 | } |
| 480 | |
| 481 | TEST(ArraySortIndicesFunction, RandomDictionaryArray) { |
| 482 | ::arrow::random::RandomArrayGenerator rng(/*seed=*/1234); |
nothing calls this directly
no test coverage detected