| 4226 | } |
| 4227 | |
| 4228 | TEST_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 | |
| 4251 | INSTANTIATE_TEST_SUITE_P(Repetition_type, TestNestedSchemaRead, |
| 4252 | ::testing::Values(Repetition::REQUIRED, Repetition::OPTIONAL)); |
nothing calls this directly
no test coverage detected