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

Function ExampleLargeBatches

cpp/src/arrow/flight/test_util.cc:233–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231}
232
233Status ExampleLargeBatches(RecordBatchVector* out) {
234 const auto array_length = 32768;
235 std::shared_ptr<RecordBatch> batch;
236 std::vector<std::shared_ptr<arrow::Array>> arrays;
237 const auto arr = arrow::ConstantArrayGenerator::Float64(array_length, 1.0);
238 for (int i = 0; i < 128; i++) {
239 arrays.push_back(arr);
240 }
241 auto schema = ExampleLargeSchema();
242 out->push_back(RecordBatch::Make(schema, array_length, arrays));
243 out->push_back(RecordBatch::Make(schema, array_length, arrays));
244 return Status::OK();
245}
246
247arrow::Result<std::shared_ptr<RecordBatch>> VeryLargeBatch() {
248 // In CI, some platforms don't let us allocate one very large

Callers 3

TestDoGetLargeBatchMethod · 0.85
TestLargeBatchMethod · 0.85
GetBatchForFlightFunction · 0.85

Calls 4

ExampleLargeSchemaFunction · 0.85
push_backMethod · 0.80
MakeFunction · 0.50
OKFunction · 0.50

Tested by

no test coverage detected