| 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()); |