-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[feature-wip](multi-catalog) support partition&missing columns in parquet lazy read #14264
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
be/src/exec/text_converter.h
Outdated
| bool write_vec_column(const SlotDescriptor* slot_desc, vectorized::IColumn* nullable_col_ptr, | ||
| const char* data, size_t len, bool copy_string, bool need_escape); | ||
| const char* data, size_t len, bool copy_string, bool need_escape, | ||
| size_t rows = 1); |
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.
add comment in code to explain this magic num
be/src/exec/text_converter.hpp
Outdated
| } else { | ||
| nullable_column->get_null_map_data().push_back(0); | ||
| auto& null_map = nullable_column->get_null_map_data(); | ||
| null_map.resize_fill(null_map.size() + rows, 0); |
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.
You need to modify the if code block in L333
| } | ||
| virtual ~GenericReader() = default; | ||
|
|
||
| bool fill_all_columns() const { return _fill_all_columns; } |
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.
Add comment for interface.
|
TeamCity pipeline, clickbench performance test result: |
a61c89a to
ff6685a
Compare
morningman
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
Proposed changes
Support partition&missing columns in parquet lazy read.
Problem summary
PR #13917 has supported lazy read for non-predicate columns in ParquetReader, but can't trigger lazy read when predicate columns are partition or missing columns. This PR support such case, and fill partition and missing columns in
FileReader.Checklist(Required)
Further comments
If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...