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