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

Method CheckNumChildren

cpp/src/arrow/c/bridge.cc:1427–1433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 2

InvalidFunction · 0.50
OKFunction · 0.50

Tested by

no test coverage detected