| 1960 | } // namespace |
| 1961 | |
| 1962 | Result<std::shared_ptr<Array>> ImportArray(struct ArrowArray* array, |
| 1963 | std::shared_ptr<DataType> type) { |
| 1964 | ArrayImporter importer(type); |
| 1965 | RETURN_NOT_OK(importer.Import(array)); |
| 1966 | return importer.MakeArray(); |
| 1967 | } |
| 1968 | |
| 1969 | Result<std::shared_ptr<Array>> ImportArray(struct ArrowArray* array, |
| 1970 | struct ArrowSchema* type) { |