| 1425 | } |
| 1426 | |
| 1427 | Status CheckNumChildren(const std::shared_ptr<DataType>& type, int64_t n_children) { |
| 1428 | if (c_struct_->n_children != n_children) { |
| 1429 | return Status::Invalid("Expected ", n_children, " children for imported type ", |
| 1430 | *type, ", ArrowArray struct has ", c_struct_->n_children); |
| 1431 | } |
| 1432 | return Status::OK(); |
| 1433 | } |
| 1434 | |
| 1435 | Status CheckNumChildren(int64_t n_children) { |
| 1436 | if (c_struct_->n_children != n_children) { |