Skip to content

Commit

Permalink
Minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
mhaseeb123 committed Nov 15, 2024
1 parent f5b16ed commit c984528
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cpp/src/io/parquet/reader_impl_preprocess.cu
Original file line number Diff line number Diff line change
Expand Up @@ -729,9 +729,10 @@ struct set_final_row_count {
if (i < pages.size() - 1 && (pages[i + 1].chunk_idx == page.chunk_idx)) { return; }
size_t const page_start_row = chunk.start_row + page.chunk_row;
size_t const chunk_last_row = chunk.start_row + chunk.num_rows;
page.num_rows = chunk_last_row - page_start_row;
// Mark `is_num_rows_adjusted` to signal string decoders to treat this page as a bounds page.
page.is_num_rows_adjusted = true;
// Mark `is_num_rows_adjusted` to signal string decoders that the `num_rows` of this page has
// been adjusted.
page.is_num_rows_adjusted = page.num_rows != (chunk_last_row - page_start_row);
page.num_rows = chunk_last_row - page_start_row;
}
};

Expand Down

0 comments on commit c984528

Please sign in to comment.