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

Function CheckDictionaryArray

cpp/src/arrow/array/array_dict_test.cc:51–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51void 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
59std::shared_ptr<Array> DictExtensionFromJSON(const std::shared_ptr<DataType>& type,
60 const std::string& json) {

Callers 1

TESTFunction · 0.85

Calls 3

AssertArraysEqualFunction · 0.85
indicesMethod · 0.80
dictionaryMethod · 0.45

Tested by

no test coverage detected