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

Method HasList

cpp/src/arrow/testing/random_test.cc:74–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72 }
73
74 bool HasList(const DataType& type) {
75 if (is_var_length_list_like(type.id())) {
76 return true;
77 }
78 for (const auto& child : type.fields()) {
79 if (HasList(*child->type())) {
80 return true;
81 }
82 }
83 if (type.id() == Type::DICTIONARY) {
84 if (HasList(*checked_cast<const DictionaryType&>(type).value_type())) {
85 return true;
86 }
87 }
88 return false;
89 }
90};
91
92TEST_P(RandomArrayTest, GenerateArray) {

Callers

nothing calls this directly

Calls 5

is_var_length_list_likeFunction · 0.85
idMethod · 0.45
fieldsMethod · 0.45
typeMethod · 0.45
value_typeMethod · 0.45

Tested by

no test coverage detected