File tree Expand file tree Collapse file tree
datafusion/physical-plan/src/aggregates/group_values Expand file tree Collapse file tree Original file line number Diff line number Diff 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///
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments