| 687 | } // namespace |
| 688 | |
| 689 | Status ExportArray(const Array& array, struct ArrowArray* out, |
| 690 | struct ArrowSchema* out_schema) { |
| 691 | SchemaExportGuard guard(out_schema); |
| 692 | if (out_schema != nullptr) { |
| 693 | RETURN_NOT_OK(ExportType(*array.type(), out_schema)); |
| 694 | } |
| 695 | ArrayExporter exporter; |
| 696 | RETURN_NOT_OK(exporter.Export(array.data())); |
| 697 | exporter.Finish(out); |
| 698 | guard.Detach(); |
| 699 | return Status::OK(); |
| 700 | } |
| 701 | |
| 702 | Status ExportRecordBatch(const RecordBatch& batch, struct ArrowArray* out, |
| 703 | struct ArrowSchema* out_schema) { |
no test coverage detected