Skip to content

Commit

Permalink
update sort partition points
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiayu Liu committed Jun 23, 2021
1 parent d55a105 commit b2ed86f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions datafusion/src/physical_plan/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,9 @@ fn find_ranges_in_range<'a>(
) -> &'a [Range<usize>] {
let start_idx = sort_partition_points
.partition_point(|sort_range| sort_range.start < partition_range.start);
let end_idx = sort_partition_points
.partition_point(|sort_range| sort_range.end <= partition_range.end);
let end_idx = start_idx
+ sort_partition_points[start_idx..]
.partition_point(|sort_range| sort_range.end <= partition_range.end);
&sort_partition_points[start_idx..end_idx]
}

Expand Down

0 comments on commit b2ed86f

Please sign in to comment.