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

Function GenerateTestSchema

cpp/src/arrow/type_benchmark.cc:428–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

426// FieldPath::Get benchmarks
427
428static std::shared_ptr<Schema> GenerateTestSchema(int num_columns) {
429 FieldVector fields(num_columns);
430 for (int i = 0; i < num_columns; ++i) {
431 auto name = std::string("f") + std::to_string(i);
432 fields[i] = field(std::move(name), int64());
433 }
434 return schema(std::move(fields));
435}
436
437static std::shared_ptr<Array> GenerateTestArray(int num_columns) {
438 constexpr int64_t kLength = 100;

Callers 1

GenerateTestArrayFunction · 0.85

Calls 3

to_stringFunction · 0.85
fieldFunction · 0.70
schemaFunction · 0.70

Tested by

no test coverage detected