Skip to content

Commit

Permalink
Update cpp/src/arrow/compute/kernels/aggregate_basic_internal.h
Browse files Browse the repository at this point in the history
Co-authored-by: Antoine Pitrou <pitrou@free.fr>
  • Loading branch information
R-JunmingChen and pitrou authored Oct 19, 2023
1 parent be9238e commit d2ed61c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/src/arrow/compute/kernels/aggregate_basic_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -921,8 +921,8 @@ struct DictionaryMinMaxImpl : public ScalarAggregator {
out_type(std::move(out_type)),
has_nulls(false),
count(0),
min(nullptr),
max(nullptr) {
min(MakeNullScalar(this->out_type)),
max(this->min) {
this->options.min_count = std::max<uint32_t>(1, this->options.min_count);
}

Expand Down

0 comments on commit d2ed61c

Please sign in to comment.