Skip to content

Commit

Permalink
local var
Browse files Browse the repository at this point in the history
  • Loading branch information
R-JunmingChen committed Feb 4, 2024
1 parent 9260e2f commit 0e53afe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cpp/src/arrow/compute/kernels/aggregate_basic_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -1135,8 +1135,9 @@ struct DictionaryMinMaxImpl : public ScalarAggregator {
inline Status InitValueState() {
if (this->value_state == nullptr) {
const DataType& value_type_ref = checked_cast<const DataType&>(*this->value_type);
MinMaxInitState<SimdLevel::NONE> valueMinMaxInitState(
nullptr, value_type_ref, out_type, ScalarAggregateOptions::Defaults());
ScalarAggregateOptions options = ScalarAggregateOptions::Defaults();
MinMaxInitState<SimdLevel::NONE> valueMinMaxInitState(nullptr, value_type_ref,
out_type, options);
ARROW_ASSIGN_OR_RAISE(this->value_state, valueMinMaxInitState.Create());
}
return Status::OK();
Expand Down

0 comments on commit 0e53afe

Please sign in to comment.