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

Method CheckNumChildren

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

Source from the content-addressed store, hash-verified

1811 Status CheckNoChildren() { return CheckNumChildren(0); }
1812
1813 Status CheckNumChildren(int64_t n_children) {
1814 if (c_struct_->n_children != n_children) {
1815 return Status::Invalid("Expected ", n_children, " children for imported type ",
1816 type_->ToString(), ", ArrowArray struct has ",
1817 c_struct_->n_children);
1818 }
1819 return Status::OK();
1820 }
1821
1822 Status CheckNumBuffers(int64_t n_buffers) {
1823 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