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

Function ColumnArraysFromExecBatch

cpp/src/arrow/compute/light_array_internal.cc:186–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184}
185
186Status ColumnArraysFromExecBatch(const ExecBatch& batch, int64_t start_row,
187 int64_t num_rows,
188 std::vector<KeyColumnArray>* column_arrays) {
189 int num_columns = static_cast<int>(batch.values.size());
190 column_arrays->resize(num_columns);
191 for (int i = 0; i < num_columns; ++i) {
192 const Datum& data = batch.values[i];
193 ARROW_DCHECK(data.is_array());
194 const std::shared_ptr<ArrayData>& array_data = data.array();
195 ARROW_ASSIGN_OR_RAISE((*column_arrays)[i],
196 ColumnArrayFromArrayData(array_data, start_row, num_rows));
197 }
198 return Status::OK();
199}
200
201Status ColumnArraysFromExecBatch(const ExecBatch& batch,
202 std::vector<KeyColumnArray>* column_arrays) {

Callers 9

AppendBatchSelectionMethod · 0.85
CompareMethod · 0.85
HashBatchMethod · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
MakeRowTableFromColumnFunction · 0.85
row_test.ccFile · 0.85

Calls 7

ColumnArrayFromArrayDataFunction · 0.85
resizeMethod · 0.80
is_arrayMethod · 0.80
ARROW_ASSIGN_OR_RAISEFunction · 0.50
OKFunction · 0.50
sizeMethod · 0.45
arrayMethod · 0.45

Tested by 5

TESTFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
MakeRowTableFromColumnFunction · 0.68