MINOR: [C++][Parquet] Fix column_reader_test#35233
Conversation
mapleFU
left a comment
There was a problem hiding this comment.
LGTM. Seems is_required means the non-nested leaf schema not need def-levels
|
Benchmark runs are scheduled for baseline = 8e5f6c8 and contender = f01853d. f01853d is a master commit associated with this PR. Results will be available as each benchmark for each run completes. |
|
['Python', 'R'] benchmarks have high level of regressions. |
### Rationale for this change apache#14142 implemented the logic to skip parquet records and added a lot of test caese. However, there is a minor issue in the test function `RecordReaderPrimitiveTypeTest::CheckReadValues` where `!` is missing. ```c++ if (descr_->schema_node()->is_required()) { std::vector<int16_t> read_defs( record_reader_->def_levels(), record_reader_->def_levels() + record_reader_->levels_position()); ASSERT_TRUE(vector_equal(expected_defs, read_defs)); } ``` ### What changes are included in this PR? Add `!` to `if (descr_->schema_node()->is_required())` as mentioned above. ### Are these changes tested? This is a fix to the test case. ### Are there any user-facing changes? NO. Authored-by: Gang Wu <ustcwg@gmail.com> Signed-off-by: Will Jones <willjones127@gmail.com>
### Rationale for this change apache#14142 implemented the logic to skip parquet records and added a lot of test caese. However, there is a minor issue in the test function `RecordReaderPrimitiveTypeTest::CheckReadValues` where `!` is missing. ```c++ if (descr_->schema_node()->is_required()) { std::vector<int16_t> read_defs( record_reader_->def_levels(), record_reader_->def_levels() + record_reader_->levels_position()); ASSERT_TRUE(vector_equal(expected_defs, read_defs)); } ``` ### What changes are included in this PR? Add `!` to `if (descr_->schema_node()->is_required())` as mentioned above. ### Are these changes tested? This is a fix to the test case. ### Are there any user-facing changes? NO. Authored-by: Gang Wu <ustcwg@gmail.com> Signed-off-by: Will Jones <willjones127@gmail.com>
Rationale for this change
#14142 implemented the logic to skip parquet records and added a lot of test caese. However, there is a minor issue in the test function
RecordReaderPrimitiveTypeTest::CheckReadValueswhere!is missing.What changes are included in this PR?
Add
!toif (descr_->schema_node()->is_required())as mentioned above.Are these changes tested?
This is a fix to the test case.
Are there any user-facing changes?
NO.