-
Notifications
You must be signed in to change notification settings - Fork 4k
MINOR: [C++][Parquet] Fix column_reader_test #35233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
mapleFU
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 <[email protected]> Signed-off-by: Will Jones <[email protected]>
### 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 <[email protected]> Signed-off-by: Will Jones <[email protected]>
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.