| 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) { |
nothing calls this directly
no test coverage detected