Skip to content
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

[C++][Parquet] Would ReadNewPage conflict with data_page_filter? #38880

Open
mapleFU opened this issue Nov 25, 2023 · 2 comments
Open

[C++][Parquet] Would ReadNewPage conflict with data_page_filter? #38880

mapleFU opened this issue Nov 25, 2023 · 2 comments

Comments

@mapleFU
Copy link
Member

mapleFU commented Nov 25, 2023

Describe the enhancement requested

parquet::ColumnReader::HasNextInternal might call ReadNewPage to check the record boundary.

  bool HasNextInternal() {
    // Either there is no data page available yet, or the data page has been
    // exhausted
    if (num_buffered_values_ == 0 || num_decoded_values_ == num_buffered_values_) {
      if (!ReadNewPage() || num_buffered_values_ == 0) {
        return false;
      }
    }
    return true;
  }

And ReadNewPage will call:

  // Advance to the next data page
  bool ReadNewPage() {
    // Loop until we find the next data page.
    while (true) {
      current_page_ = pager_->NextPage();
      if (!current_page_) {
        // EOS
        return false;
      }

When having data_page_filter, in v1 format, seems that NextPage might filter the data-page?

Component(s)

C++, Parquet

@mapleFU
Copy link
Member Author

mapleFU commented Nov 25, 2023

cc @emkornfield @fatemehp

I think this might not be triggered when page-index enabled, but would this be a problem in v1 page with cross-page record?

@fatemehp
Copy link
Contributor

fatemehp commented Nov 25, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants