Skip to content

Commit

Permalink
fix type of state.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rachelint committed Jan 22, 2025
1 parent 0957ff9 commit a53da8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datafusion/functions-aggregate/src/median.rs
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ impl<T: ArrowNumericType + Send> GroupsAccumulator for MedianGroupsAccumulator<T

// Build the result list array
let result_list_array = ListArray::new(
Arc::new(Field::new_list_field(self.data_type.clone(), false)),
Arc::new(Field::new_list_field(self.data_type.clone(), true)),
offsets,
Arc::new(group_values_array),
None,
Expand Down Expand Up @@ -449,7 +449,7 @@ impl<T: ArrowNumericType + Send> GroupsAccumulator for MedianGroupsAccumulator<T
let nulls = filtered_null_mask(opt_filter, input_array);

let converted_list_array = ListArray::new(
Arc::new(Field::new_list_field(self.data_type.clone(), false)),
Arc::new(Field::new_list_field(self.data_type.clone(), true)),
offsets,
Arc::new(values),
nulls,
Expand Down

0 comments on commit a53da8c

Please sign in to comment.