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

Function SchemaFromNames

cpp/src/arrow/dataset/dataset_test.cc:507–514  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

505}
506
507inline std::shared_ptr<Schema> SchemaFromNames(const std::vector<std::string> names) {
508 std::vector<std::shared_ptr<Field>> fields;
509 for (const auto& name : names) {
510 fields.push_back(field(name, int32()));
511 }
512
513 return schema(fields);
514}
515
516class TestSchemaUnification : public TestUnionDataset {
517 public:

Callers 2

SetUpMethod · 0.85
TESTMethod · 0.85

Calls 3

push_backMethod · 0.80
fieldFunction · 0.50
schemaFunction · 0.50

Tested by

no test coverage detected