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