-
Notifications
You must be signed in to change notification settings - Fork 988
Filter row groups using byte range in the new experimental parquet reader #20733
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
base: main
Are you sure you want to change the base?
Filter row groups using byte range in the new experimental parquet reader #20733
Conversation
| void parquet_reader_options::set_skip_bytes(size_t val) | ||
| { | ||
| CUDF_EXPECTS(val == 0 or std::cmp_equal(_source.num_sources(), 1), | ||
| CUDF_EXPECTS(val == 0 or std::cmp_less_equal(_source.num_sources(), 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.
There is no internal source in case of the hybrid scan reader so relaxing the condition
| * @param options Parquet reader options | ||
| * @return Filtered row group indices | ||
| */ | ||
| [[nodiscard]] std::vector<size_type> filter_row_groups_with_byte_range( |
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.
New public API
| auto const input_row_group_indices = | ||
| std::vector<std::vector<size_type>>{{row_group_indices.begin(), row_group_indices.end()}}; | ||
|
|
||
| return _impl->filter_row_groups_with_byte_range(input_row_group_indices, options).front(); |
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.
Call the impl API
davidwendt
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
Co-authored-by: David Wendt <[email protected]>
Co-authored-by: David Wendt <[email protected]>
Description
This PR implements filtering row groups using byte ranges in the new experimental parquet reader using the existing filtering APIs from the main parquet reader
Checklist