| 62 | } |
| 63 | |
| 64 | Result<std::shared_ptr<RecordBatch>> ReadBatchFromJson(const std::string& json_path, |
| 65 | int num_batch, MemoryPool* pool) { |
| 66 | ARROW_ASSIGN_OR_RAISE(auto file, io::ReadableFile::Open(json_path, pool)); |
| 67 | ARROW_ASSIGN_OR_RAISE(auto reader, IntegrationJsonReader::Open(pool, file)); |
| 68 | return reader->ReadRecordBatch(num_batch); |
| 69 | } |
| 70 | |
| 71 | // XXX ideally, we should allow use of a custom memory pool in the C bridge API, |
| 72 | // but that requires non-trivial refactor |
nothing calls this directly
no test coverage detected