Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Raphael Taylor-Davies <[email protected]>
  • Loading branch information
alamb and tustvold authored Jul 19, 2023
1 parent 4814da4 commit 6d1526f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion datafusion/core/src/physical_plan/aggregates/order/full.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ impl GroupOrderingFull {
batch_hashes: &[u64],
total_num_groups: usize,
) {
assert!(total_num_groups > 0);
assert_ne!(total_num_groups, 0);
assert_eq!(group_indices.len(), batch_hashes.len());

// copy any hash values
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ enum State {

/// Data is in progress.
InProgress {
/// first group index with the sort_key
/// Smallest group index with the sort_key
current_sort: usize,
/// The sort key of group_index `current_sort`
sort_key: OwnedRow,
Expand Down

0 comments on commit 6d1526f

Please sign in to comment.