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

Method MakeSchema

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

Source from the content-addressed store, hash-verified

1005 }
1006
1007 Result<std::shared_ptr<Schema>> MakeSchema() const {
1008 if (type_->id() != Type::STRUCT) {
1009 return Status::Invalid(
1010 "Cannot import schema: ArrowSchema describes non-struct type ",
1011 type_->ToString());
1012 }
1013 return schema(type_->fields(), std::move(metadata_.metadata));
1014 }
1015
1016 Result<std::shared_ptr<DataType>> MakeType() const { return type_; }
1017

Callers 1

ImportSchemaFunction · 0.45

Calls 5

InvalidFunction · 0.50
schemaFunction · 0.50
idMethod · 0.45
ToStringMethod · 0.45
fieldsMethod · 0.45

Tested by

no test coverage detected