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

Function TableFromExecBatches

cpp/src/arrow/acero/util.cc:48–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48Result<std::shared_ptr<Table>> TableFromExecBatches(
49 const std::shared_ptr<Schema>& schema, const std::vector<ExecBatch>& exec_batches) {
50 RecordBatchVector batches;
51 for (const auto& batch : exec_batches) {
52 ARROW_ASSIGN_OR_RAISE(auto rb, batch.ToRecordBatch(schema));
53 batches.push_back(std::move(rb));
54 }
55 return Table::FromRecordBatches(schema, batches);
56}
57
58size_t ThreadIndexer::operator()() {
59 auto id = std::this_thread::get_id();

Callers 1

Calls 1

push_backMethod · 0.80

Tested by 1