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

Method CheckArrayType

cpp/src/arrow/array/builder_base.cc:39–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37using internal::checked_cast;
38
39Status ArrayBuilder::CheckArrayType(const std::shared_ptr<DataType>& expected_type,
40 const Array& array, const char* message) {
41 if (!expected_type->Equals(*array.type())) {
42 return Status::TypeError(message);
43 }
44 return Status::OK();
45}
46
47Status ArrayBuilder::CheckArrayType(Type::type expected_type, const Array& array,
48 const char* message) {

Callers

nothing calls this directly

Calls 5

TypeErrorFunction · 0.50
OKFunction · 0.50
EqualsMethod · 0.45
typeMethod · 0.45
type_idMethod · 0.45

Tested by

no test coverage detected