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