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 12, 2023
1 parent 8aca272 commit f2ec70c
Show file tree
Hide file tree
Showing 5 changed files with 480 additions and 47 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 f2ec70c

Please sign in to comment.