Skip to content

Commit

Permalink
Apply suggestions from code reviews.
Browse files Browse the repository at this point in the history
  • Loading branch information
mhaseeb123 committed Sep 17, 2024
1 parent c5e81fe commit 135d565
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cpp/include/cudf/io/parquet.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ namespace io {
* @file
*/

constexpr auto default_row_group_size_bytes =
constexpr size_t default_row_group_size_bytes =
std::numeric_limits<size_t>::max(); ///< Infinite bytes per row group
constexpr size_type default_row_group_size_rows = 1'000'000; ///< 1 million rows per row group
constexpr size_t default_max_page_size_bytes = 512 * 1024; ///< 512KB per page
Expand Down
3 changes: 2 additions & 1 deletion cpp/src/io/parquet/writer_impl.cu
Original file line number Diff line number Diff line change
Expand Up @@ -1825,7 +1825,8 @@ auto convert_table_to_parquet_data(table_input_metadata& table_meta,
std::min<size_t>(std::numeric_limits<size_type>::max(),
util::div_rounding_up_safe(max_row_group_size, avg_row_len));
// Safe comparison as rg_frag_size fits in size_type
max_page_fragment_size = std::min<size_type>(rg_frag_size, max_page_fragment_size);
max_page_fragment_size =
std::min<size_type>(static_cast<size_type>(rg_frag_size), max_page_fragment_size);
}

// dividing page size by average row length will tend to overshoot the desired
Expand Down

0 comments on commit 135d565

Please sign in to comment.