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

Function ParseToSchema

cpp/src/arrow/dataset/file_json.cc:154–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154Result<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//

Callers

nothing calls this directly

Calls 2

schemaFunction · 0.50
fieldsMethod · 0.45

Tested by

no test coverage detected