Skip to content

Commit

Permalink
Implement sort order aware redistribution
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb committed Dec 13, 2023
1 parent 0a9dfb9 commit 0b558bc
Show file tree
Hide file tree
Showing 5 changed files with 482 additions and 48 deletions.
1 change: 1 addition & 0 deletions datafusion/core/src/datasource/physical_plan/csv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ impl ExecutionPlan for CsvExec {

let repartitioned_file_groups_option = FileGroupPartitioner::new()
.with_target_partitions(target_partitions)
.with_preserve_order_within_groups(self.output_ordering().is_some())
.with_repartition_file_min_size(repartition_file_min_size)
.repartition_file_groups(&self.base_config.file_groups);

Expand Down
Loading

0 comments on commit 0b558bc

Please sign in to comment.