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

Method ImportChild

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

Source from the content-addressed store, hash-verified

1025
1026 protected:
1027 Status ImportChild(const SchemaImporter* parent, struct ArrowSchema* src) {
1028 if (ArrowSchemaIsReleased(src)) {
1029 return Status::Invalid("Cannot import released ArrowSchema");
1030 }
1031 recursion_level_ = parent->recursion_level_ + 1;
1032 if (recursion_level_ >= kMaxImportRecursionLevel) {
1033 return Status::Invalid("Recursion level in ArrowSchema struct exceeded");
1034 }
1035 // The ArrowSchema is owned by its parent, so don't release it ourselves
1036 c_struct_ = src;
1037 return DoImport();
1038 }
1039
1040 Status ImportDict(const SchemaImporter* parent, struct ArrowSchema* src) {
1041 return ImportChild(parent, src);

Callers

nothing calls this directly

Calls 2

ArrowSchemaIsReleasedFunction · 0.85
InvalidFunction · 0.50

Tested by

no test coverage detected