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

Method CheckNumChildren

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

Source from the content-addressed store, hash-verified

1819 Status CheckNoChildren() { return CheckNumChildren(0); }
1820
1821 Status CheckNumChildren(int64_t n_children) {
1822 if (c_struct_->n_children != n_children) {
1823 return Status::Invalid("Expected ", n_children, " children for imported type ",
1824 type_->ToString(), ", ArrowArray struct has ",
1825 c_struct_->n_children);
1826 }
1827 return Status::OK();
1828 }
1829
1830 Status CheckNumBuffers(int64_t n_buffers) {
1831 if (n_buffers != c_struct_->n_buffers) {

Callers

nothing calls this directly

Calls 3

InvalidFunction · 0.50
OKFunction · 0.50
ToStringMethod · 0.45

Tested by

no test coverage detected