shruti2522 commented on code in PR #17100: URL: https://github.com/apache/datafusion/pull/17100#discussion_r2267419262
########## datafusion/functions-aggregate/benches/count.rs: ########## @@ -82,7 +82,7 @@ fn convert_to_state_bench( b.iter(|| { black_box( accumulator - .convert_to_state(&[values.clone()], opt_filter) + .convert_to_state(std::slice::from_ref(&values), opt_filter) Review Comment: [A] slice fix (`&[values.clone()]` --> `std::slice::from_ref(&values)`) ########## datafusion/functions-aggregate/benches/count.rs: ########## @@ -125,7 +125,11 @@ fn count_benchmark(c: &mut Criterion) { c.bench_function("count low cardinality dict 20% nulls, no filter", |b| { b.iter(|| { #[allow(clippy::unit_arg)] - black_box(accumulator.update_batch(&[values.clone()]).unwrap()) + black_box( + accumulator + .update_batch(std::slice::from_ref(&values)) + .unwrap(), + ) Review Comment: [A] slice fix (`&[values.clone()]` --> `std::slice::from_ref(&values)`) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org