MCPcopy Create free account
hub / github.com/apache/arrow / DecodeDictionary

Function DecodeDictionary

cpp/src/arrow/compute/kernels/vector_sort_test.cc:474–479  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

472}
473
474Result<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
481TEST(ArraySortIndicesFunction, RandomDictionaryArray) {
482 ::arrow::random::RandomArrayGenerator rng(/*seed=*/1234);

Callers

nothing calls this directly

Calls 1

make_arrayMethod · 0.80

Tested by

no test coverage detected