style: fix clippy

This commit is contained in:
evenyag
2024-12-04 14:48:47 +08:00
parent d5f18088ab
commit 32afd91f01

View File

@@ -131,7 +131,7 @@ impl ParallelizeScan {
let total_rows = ranges.iter().map(|range| range.num_rows).sum::<usize>();
// Computes the partition num by the max row number. This eliminates the unbalance of the partitions.
let balanced_partition_num = if max_rows > 0 {
(total_rows + max_rows - 1) / max_rows
total_rows.div_ceil(max_rows)
} else {
ranges.len()
};