Skip to content

Commit 4510f29

Browse files
committed
fix group values len method.
1 parent 2014a94 commit 4510f29

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

datafusion/physical-plan/src/aggregates/group_values/single_group_by/primitive.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ where
174174
}
175175

176176
fn len(&self) -> usize {
177-
self.map.len() + self.null_group.map(|_| 1).unwrap_or_default()
177+
self.values.iter().map(|block| block.len()).sum::<usize>()
178178
}
179179

180180
fn emit(&mut self, emit_to: EmitTo) -> Result<Vec<ArrayRef>> {

0 commit comments

Comments
 (0)