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

Function TEST_F

cpp/src/parquet/arrow/reconstruct_internal_test.cc:289–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

287//
288
289TEST_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
301TEST_F(TestReconstructColumn, PrimitiveRequired) {
302 SetParquetSchema(

Callers

nothing calls this directly

Calls 8

ArrayFromJSONFunction · 0.85
listFunction · 0.85
OneFieldStructFunction · 0.85
struct_Function · 0.85
fieldFunction · 0.70
ListFunction · 0.70
MakeFunction · 0.50
SetParquetSchemaMethod · 0.45

Tested by

no test coverage detected