MCPcopy Create free account
hub / github.com/apache/arrow / ToArrayVectors

Function ToArrayVectors

cpp/src/arrow/acero/test_util_internal.cc:337–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335}
336
337Result<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
348Result<std::vector<std::shared_ptr<ExecBatch>>> ToExecBatches(
349 const BatchesWithSchema& batches_with_schema) {

Callers

nothing calls this directly

Calls 2

push_backMethod · 0.80
columnsMethod · 0.80

Tested by

no test coverage detected