| 372 | } |
| 373 | |
| 374 | Result<std::shared_ptr<Schema>> JsonFileFormat::Inspect(const FileSource& source) const { |
| 375 | ARROW_ASSIGN_OR_RAISE(auto reader, OpenReader(source, *this)); |
| 376 | return reader->schema(); |
| 377 | } |
| 378 | |
| 379 | Result<RecordBatchGenerator> JsonFileFormat::ScanBatchesAsync( |
| 380 | const std::shared_ptr<ScanOptions>& scan_options, |