Skip to content

Commit

Permalink
Fixing case when not has_min_max_
Browse files Browse the repository at this point in the history
  • Loading branch information
mapleFU committed Jun 8, 2023
1 parent 8d52868 commit bc598dd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cpp/src/parquet/statistics.cc
Original file line number Diff line number Diff line change
Expand Up @@ -568,11 +568,13 @@ class TypedStatisticsImpl : public TypedStatistics<DType> {
this->has_null_count_ = false;
}
// Distinct count cannot be merged.
this->has_distinct_count_ = false;
if (has_distinct_count_) {
has_distinct_count_ = false;
}
// If !other.HasMinMax, might be all-nulls all nulls and nan,
// so, not clear `this->has_min_max_` here.
if (other.HasMinMax()) {
SetMinMax(other.min(), other.max());
} else {
this->has_min_max_ = false;
}
}

Expand Down

0 comments on commit bc598dd

Please sign in to comment.