| 152 | } |
| 153 | |
| 154 | Result<std::shared_ptr<Schema>> ParseToSchema(std::string_view data, |
| 155 | const json::ParseOptions& parse_options, |
| 156 | MemoryPool* pool) { |
| 157 | ARROW_ASSIGN_OR_RAISE(auto type, ParseToStructType(data, parse_options, pool)); |
| 158 | return schema(type->fields()); |
| 159 | } |
| 160 | |
| 161 | // Converts a FieldPath to a FieldRef consisting exclusively of field names. |
| 162 | // |