| 287 | // |
| 288 | |
| 289 | TEST_F(TestReconstructColumn, PrimitiveOptional) { |
| 290 | SetParquetSchema( |
| 291 | PrimitiveNode::Make("node_name", Repetition::OPTIONAL, ParquetType::INT32)); |
| 292 | |
| 293 | LevelVector def_levels = {1, 0, 1, 1}; |
| 294 | LevelVector rep_levels = {}; |
| 295 | std::vector<int32_t> values = {4, 5, 6}; |
| 296 | |
| 297 | auto expected = ArrayFromJSON(int32(), "[4, null, 5, 6]"); |
| 298 | AssertReconstruct<ParquetType::INT32>(*expected, def_levels, rep_levels, values); |
| 299 | } |
| 300 | |
| 301 | TEST_F(TestReconstructColumn, PrimitiveRequired) { |
| 302 | SetParquetSchema( |
nothing calls this directly
no test coverage detected