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

Method SetUpSchema

cpp/src/parquet/test_util.h:658–668  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

656 using c_type = typename TestType::c_type;
657
658 virtual void SetUpSchema(Repetition::type repetition, int num_columns) {
659 std::vector<schema::NodePtr> fields;
660
661 for (int i = 0; i < num_columns; ++i) {
662 std::string name = TestColumnName(i);
663 fields.push_back(schema::PrimitiveNode::Make(name, repetition, TestType::type_num,
664 ConvertedType::NONE, FLBA_LENGTH));
665 }
666 node_ = schema::GroupNode::Make("schema", Repetition::REQUIRED, fields);
667 schema_.Init(node_);
668 }
669
670 void SetUpSchema(Repetition::type repetition) { this->SetUpSchema(repetition, 1); }
671

Callers 7

SetUpMethod · 0.45
TYPED_TESTFunction · 0.45
TEST_FFunction · 0.45
TestWithEncodingMethod · 0.45
ASSERT_OK_AND_ASSIGNFunction · 0.45
SetUpMethod · 0.45
RepeatedUnequalRowsMethod · 0.45

Calls 4

TestColumnNameFunction · 0.85
push_backMethod · 0.80
MakeFunction · 0.70
InitMethod · 0.45

Tested by

no test coverage detected