Skip to content

Commit f99e0fc

Browse files
committed
Add comment about default repartition behavior
1 parent 2d152ff commit f99e0fc

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

benchmarks/src/tpch/convert.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ pub struct ConvertOpt {
4848
#[structopt(short = "c", long = "compression", default_value = "zstd")]
4949
compression: String,
5050

51-
/// Number of partitions to produce
51+
/// Number of partitions to produce. By default, uses only 1 partition.
5252
#[structopt(short = "n", long = "partitions", default_value = "1")]
5353
partitions: usize,
5454

@@ -105,9 +105,7 @@ impl ConvertOpt {
105105
.collect::<Vec<_>>();
106106

107107
csv = csv.select(selection)?;
108-
// optionally, repartition the file
109-
let partitions = self.partitions;
110-
csv = csv.repartition(Partitioning::RoundRobinBatch(partitions))?;
108+
csv = csv.repartition(Partitioning::RoundRobinBatch(self.partitions))?;
111109
let csv = if self.sort {
112110
csv.sort_by(vec![col(key_column_name)])?
113111
} else {

0 commit comments

Comments
 (0)