| 56 | } |
| 57 | |
| 58 | Result<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 | |
| 65 | Result<std::shared_ptr<RecordBatch>> ReadBatchFromJson(const std::string& json_path, |
| 66 | int num_batch, MemoryPool* pool) { |