| 335 | } |
| 336 | |
| 337 | Result<std::vector<std::shared_ptr<ArrayVector>>> ToArrayVectors( |
| 338 | const BatchesWithSchema& batches_with_schema) { |
| 339 | std::vector<std::shared_ptr<ArrayVector>> arrayvecs; |
| 340 | for (auto batch : batches_with_schema.batches) { |
| 341 | ARROW_ASSIGN_OR_RAISE(auto record_batch, |
| 342 | batch.ToRecordBatch(batches_with_schema.schema)); |
| 343 | arrayvecs.push_back(std::make_shared<ArrayVector>(record_batch->columns())); |
| 344 | } |
| 345 | return arrayvecs; |
| 346 | } |
| 347 | |
| 348 | Result<std::vector<std::shared_ptr<ExecBatch>>> ToExecBatches( |
| 349 | const BatchesWithSchema& batches_with_schema) { |