Skip to content

Commit f5c0935

Browse files
committed
fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
1 parent 7c166e6 commit f5c0935

File tree

1 file changed

+1
-1
lines changed
  • datafusion/functions-aggregate/src

1 file changed

+1
-1
lines changed

datafusion/functions-aggregate/src/count.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@ impl GroupsAccumulator for DistinctCountGroupsAccumulator {
952952
) -> Result<Vec<ArrayRef>> {
953953
// For a single distinct value per row, create a list array with that value
954954
assert_eq!(values.len(), 1, "COUNT DISTINCT expects a single argument");
955-
let values = values[0].clone();
955+
let values = ArrayRef::clone(&values[0]);
956956

957957
let offsets =
958958
OffsetBuffer::new(ScalarBuffer::from_iter(0..values.len() as i32 + 1));

0 commit comments

Comments
 (0)