Skip to content

Commit 8913fcf

Browse files
alambkorowa
authored andcommitted
Fix MSRV error on 1.76.0
1 parent 8549c60 commit 8913fcf

File tree

1 file changed

+3
-3
lines changed
  • datafusion/physical-expr-common/src/aggregate/groups_accumulator

1 file changed

+3
-3
lines changed

datafusion/physical-expr-common/src/aggregate/groups_accumulator/prim_op.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ where
141141
values: &[ArrayRef],
142142
opt_filter: Option<&BooleanArray>,
143143
) -> Result<Vec<ArrayRef>> {
144-
let values = values[0].as_primitive::<T>();
144+
let values = values[0].as_primitive::<T>().clone();
145145

146146
// Initializing state with starting values
147147
let initial_state =
@@ -164,11 +164,11 @@ where
164164
let (dt, values_buf, original_nulls) = values.clone().into_parts();
165165
let nulls_buf =
166166
NullBuffer::union(original_nulls.as_ref(), Some(&filter_nulls));
167-
&PrimitiveArray::<T>::new(values_buf, nulls_buf).with_data_type(dt)
167+
PrimitiveArray::<T>::new(values_buf, nulls_buf).with_data_type(dt)
168168
}
169169
};
170170

171-
let state_values = compute::binary_mut(initial_state, values, |mut x, y| {
171+
let state_values = compute::binary_mut(initial_state, &values, |mut x, y| {
172172
(self.prim_fn)(&mut x, y);
173173
x
174174
});

0 commit comments

Comments
 (0)