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

Function ReadSchemaFromJson

cpp/src/arrow/integration/c_data_integration_internal.cc:58–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58Result<std::shared_ptr<Schema>> ReadSchemaFromJson(const std::string& json_path,
59 MemoryPool* pool) {
60 ARROW_ASSIGN_OR_RAISE(auto file, io::ReadableFile::Open(json_path, pool));
61 ARROW_ASSIGN_OR_RAISE(auto reader, IntegrationJsonReader::Open(pool, file));
62 return reader->schema();
63}
64
65Result<std::shared_ptr<RecordBatch>> ReadBatchFromJson(const std::string& json_path,
66 int num_batch, MemoryPool* pool) {

Callers

nothing calls this directly

Calls 1

schemaMethod · 0.45

Tested by

no test coverage detected