Skip to content

Commit b03262b

Browse files
author
B Vadlamani
committed
init_fmt_check
1 parent d987292 commit b03262b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

datafusion/functions-aggregate/benches/approx_distinct.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ fn approx_distinct_benchmark(c: &mut Criterion) {
169169
}
170170
}
171171

172-
// --- Bitmap type benchmarks (our optimization) ---
172+
// Small integer types
173173

174174
// UInt8
175175
let values = Arc::new(create_u8_array(200)) as ArrayRef;

datafusion/functions-aggregate/src/approx_distinct.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ impl AggregateUDFImpl for ApproxDistinct {
658658
let data_type = acc_args.expr_fields[0].data_type();
659659

660660
let accumulator: Box<dyn Accumulator> = match data_type {
661-
// Testing bool array for u8
661+
// Use bitmap accumulators for small integer types
662662
DataType::UInt8 => Box::new(BoolArray256Accumulator::new()),
663663
DataType::UInt16 => Box::new(Bitmap65536Accumulator::new()),
664664
DataType::UInt32 => Box::new(NumericHLLAccumulator::<UInt32Type>::new()),

0 commit comments

Comments
 (0)