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

Method ValidateWithType

cpp/src/arrow/array/validate.cc:127–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125 }
126
127 Status ValidateWithType(const DataType& type) {
128 if (type.id() != Type::EXTENSION) {
129 if (data.child_data.size() != static_cast<size_t>(type.num_fields())) {
130 return Status::Invalid("Expected ", type.num_fields(),
131 " child arrays in array "
132 "of type ",
133 type.ToString(), ", got ", data.child_data.size());
134 }
135 }
136 return VisitTypeInline(type, this);
137 }
138
139 Status Visit(const NullType&) {
140 if (data.null_count != data.length) {

Callers

nothing calls this directly

Calls 6

VisitTypeInlineFunction · 0.85
InvalidFunction · 0.50
idMethod · 0.45
sizeMethod · 0.45
num_fieldsMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected