Skip to content

Commit a9cdec8

Browse files
committed
groups_acc
1 parent 17dd86b commit a9cdec8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

datafusion/functions-aggregate/benches/count_distinct.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
use std::sync::Arc;
1919

2020
use arrow::array::{
21-
ArrayRef, Int8Array, Int16Array, Int64Array, UInt8Array, UInt16Array,
21+
Array, ArrayRef, Int8Array, Int16Array, Int64Array, UInt8Array, UInt16Array,
2222
};
2323
use arrow::datatypes::{DataType, Field, Schema};
2424
use criterion::{Criterion, criterion_group, criterion_main};
@@ -258,7 +258,7 @@ fn count_distinct_groups_benchmark(c: &mut Criterion) {
258258
.collect();
259259

260260
for (group_idx, batch) in group_arrays.iter().enumerate() {
261-
if batch.len() > 0 {
261+
if !batch.is_empty() {
262262
accumulators[group_idx]
263263
.update_batch(std::slice::from_ref(batch))
264264
.unwrap();

0 commit comments

Comments
 (0)