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

Method MakeExample2

cpp/src/arrow/table_test.cc:1215–1226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1213 }
1214
1215 void MakeExample2(int length) {
1216 auto f0 = field("f0", int32());
1217 auto f1 = field("f1", null());
1218
1219 std::vector<std::shared_ptr<Field>> fields = {f0, f1};
1220 schema_ = std::make_shared<Schema>(fields);
1221
1222 arrays_ = {gen_.ArrayOf(int32(), length), gen_.ArrayOf(null(), length)};
1223
1224 columns_ = {std::make_shared<ChunkedArray>(arrays_[0]),
1225 std::make_shared<ChunkedArray>(arrays_[1])};
1226 }
1227
1228 void AssertTablesEqualUnorderedFields(const Table& lhs, const Table& rhs) {
1229 ASSERT_EQ(lhs.schema()->num_fields(), rhs.schema()->num_fields());

Callers

nothing calls this directly

Calls 2

fieldFunction · 0.70
ArrayOfMethod · 0.45

Tested by

no test coverage detected