Skip to content

Commit 37b4816

Browse files
committed
fix clippy.
1 parent f99f55c commit 37b4816

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

datafusion/physical-plan/src/aggregates/group_values/group_column.rs

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ use arrow::array::GenericBinaryArray;
2222
use arrow::array::GenericStringArray;
2323
use arrow::array::OffsetSizeTrait;
2424
use arrow::array::PrimitiveArray;
25-
use arrow::array::PrimitiveBuilder;
26-
use arrow::array::StringBuilder;
27-
use arrow::array::StringViewBuilder;
2825
use arrow::array::{Array, ArrayRef, ArrowPrimitiveType, AsArray};
2926
use arrow::buffer::OffsetBuffer;
3027
use arrow::buffer::ScalarBuffer;
@@ -33,10 +30,7 @@ use arrow::datatypes::ByteArrayType;
3330
use arrow::datatypes::ByteViewType;
3431
use arrow::datatypes::DataType;
3532
use arrow::datatypes::GenericBinaryType;
36-
use arrow::datatypes::StringViewType;
37-
use arrow_array::BinaryViewArray;
3833
use arrow_array::GenericByteViewArray;
39-
use arrow_array::StringViewArray;
4034
use arrow_buffer::Buffer;
4135
use datafusion_common::utils::proxy::VecAllocExt;
4236

@@ -579,7 +573,7 @@ impl<B: ByteViewType> ByteViewGroupValueBuilder<B> {
579573
}
580574
}
581575

582-
fn build_inner(self: Self) -> ArrayRef {
576+
fn build_inner(self) -> ArrayRef {
583577
let Self {
584578
views,
585579
in_progress,
@@ -1103,13 +1097,16 @@ mod tests {
11031097

11041098
// should be 2 completed, one in progress buffer to hold all output
11051099
assert_eq!(builder.completed.len(), 2);
1106-
assert!(builder.in_progress.len() > 0);
1100+
assert!(!builder.in_progress.is_empty());
11071101

11081102
let first_4 = builder.take_n(4);
11091103
println!(
11101104
"{}",
1111-
arrow::util::pretty::pretty_format_columns("first_4", &[first_4.clone()])
1112-
.unwrap()
1105+
arrow::util::pretty::pretty_format_columns(
1106+
"first_4",
1107+
&[Arc::clone(&first_4)]
1108+
)
1109+
.unwrap()
11131110
);
11141111
assert_eq!(&first_4, &input_array.slice(0, 4));
11151112

0 commit comments

Comments
 (0)