| 1004 | } |
| 1005 | |
| 1006 | Result<std::shared_ptr<Field>> MakeField() const { |
| 1007 | const char* name = c_struct_->name ? c_struct_->name : ""; |
| 1008 | bool nullable = (c_struct_->flags & ARROW_FLAG_NULLABLE) != 0; |
| 1009 | return field(name, type_, nullable, std::move(metadata_.metadata)); |
| 1010 | } |
| 1011 | |
| 1012 | Result<std::shared_ptr<Schema>> MakeSchema() const { |
| 1013 | if (type_->id() != Type::STRUCT) { |
no test coverage detected