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

Function TEST_P

cpp/src/parquet/arrow/arrow_reader_writer_test.cc:4228–4249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4226}
4227
4228TEST_P(TestNestedSchemaRead, DeepNestedSchemaRead) {
4229#ifdef PARQUET_VALGRIND
4230 const int num_trees = 3;
4231 const int depth = 3;
4232#else
4233 const int num_trees = 2;
4234 const int depth = 2;
4235#endif
4236 const int num_children = 3;
4237 int num_rows = SMALL_SIZE * (depth + 2);
4238 ASSERT_NO_FATAL_FAILURE(CreateMultiLevelNestedParquet(num_trees, depth, num_children,
4239 num_rows, GetParam()));
4240 ASSERT_OK_AND_ASSIGN(auto table, reader_->ReadTable());
4241 ASSERT_EQ(table->num_columns(), num_trees);
4242 ASSERT_EQ(table->num_rows(), num_rows);
4243
4244 DeepParquetTestVisitor visitor(GetParam(), values_array_);
4245 for (int i = 0; i < table->num_columns(); i++) {
4246 auto tree = table->column(i)->chunk(0);
4247 ASSERT_OK_NO_THROW(visitor.Validate(tree));
4248 }
4249}
4250
4251INSTANTIATE_TEST_SUITE_P(Repetition_type, TestNestedSchemaRead,
4252 ::testing::Values(Repetition::REQUIRED, Repetition::OPTIONAL));

Callers

nothing calls this directly

Calls 15

get_data_dirFunction · 0.85
default_memory_poolFunction · 0.85
AssertArraysEqualFunction · 0.85
ArrayFromJSONFunction · 0.85
FromArraysFunction · 0.85
AsDictionary32EncodedFunction · 0.85
MakeSimpleTableFunction · 0.85
listFunction · 0.85
GetReaderFunction · 0.85
CastFunction · 0.85
CreateOutputStreamFunction · 0.85

Tested by

no test coverage detected