| 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); |
nothing calls this directly
no test coverage detected