| 1974 | } |
| 1975 | |
| 1976 | Result<std::shared_ptr<RecordBatch>> ImportRecordBatch(struct ArrowArray* array, |
| 1977 | std::shared_ptr<Schema> schema) { |
| 1978 | auto type = struct_(schema->fields()); |
| 1979 | ArrayImporter importer(type); |
| 1980 | RETURN_NOT_OK(importer.Import(array)); |
| 1981 | return importer.MakeRecordBatch(std::move(schema)); |
| 1982 | } |
| 1983 | |
| 1984 | Result<std::shared_ptr<RecordBatch>> ImportRecordBatch(struct ArrowArray* array, |
| 1985 | struct ArrowSchema* schema) { |