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