Skip to content

Commit d358db4

Browse files
committed
fix clippy
1 parent 9191f39 commit d358db4

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

  • datafusion/physical-plan/src/aggregates/group_values

datafusion/physical-plan/src/aggregates/group_values/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ pub trait GroupValues: Send {
119119
/// - If group by single column, and type of this column has
120120
/// the specific [`GroupValues`] implementation, such implementation
121121
/// will be chosen.
122-
///
122+
///
123123
/// - If group by multiple columns, and all column types have the specific
124124
/// `GroupColumn` implementations, `GroupValuesColumn` will be chosen.
125125
///

datafusion/physical-plan/src/aggregates/group_values/multi_group_by/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ pub trait GroupColumn: Send + Sync {
9191
/// Returns the number of rows stored in this builder
9292
fn len(&self) -> usize;
9393

94+
/// true if len == 0
95+
fn is_empty(&self) -> bool {
96+
self.len() == 0
97+
}
98+
9499
/// Returns the number of bytes used by this [`GroupColumn`]
95100
fn size(&self) -> usize;
96101

0 commit comments

Comments
 (0)