Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
R-JunmingChen committed Oct 15, 2023
1 parent 1594f44 commit 7c2ebe0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/arrow/compute/kernels/aggregate_basic_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@ struct DictionaryMinMaxImpl : public ScalarAggregator {
if (dict->length() == 0) {
return Status::OK();
}
this->has_nulls = compacted_dict_arr.null_count() > 0;
this->has_nulls |= compacted_dict_arr.null_count() > 0;
this->count += compacted_dict_arr.length() - compacted_dict_arr.null_count();

Datum dict_values(dict);
Expand Down

0 comments on commit 7c2ebe0

Please sign in to comment.