| 37 | using internal::checked_cast; |
| 38 | |
| 39 | Status 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 | |
| 47 | Status ArrayBuilder::CheckArrayType(Type::type expected_type, const Array& array, |
| 48 | const char* message) { |