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

Function GenerateTestSchema

cpp/src/arrow/type_benchmark.cc:442–449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

440// FieldPath::Get benchmarks
441
442static std::shared_ptr<Schema> GenerateTestSchema(int num_columns) {
443 FieldVector fields(num_columns);
444 for (int i = 0; i < num_columns; ++i) {
445 auto name = std::string("f") + std::to_string(i);
446 fields[i] = field(std::move(name), int64());
447 }
448 return schema(std::move(fields));
449}
450
451static std::shared_ptr<Array> GenerateTestArray(int num_columns) {
452 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