Skip to content

Commit

Permalink
(Part 1) Ignore INF in float/double stat (#7604)
Browse files Browse the repository at this point in the history
* Skip INF values
* Still need to determine where the INFs are coming from

Signed-off-by: Misiu Godfrey <misiu.godfrey@kraken.mapd.com>
  • Loading branch information
simoneves authored and misiugodfrey committed Aug 26, 2024
1 parent 6b969f7 commit 8e28904
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ NEVER_INLINE HOST ColumnStats<T> get_column_stats(
int64_t local_col_non_null_or_filtered_count = 0;
for (int64_t r = start_idx; r < end_idx; ++r) {
const T val = data[r];
if constexpr (std::is_same_v<T, float>) {
if (isinff(val)) {
continue;
}
} else if constexpr (std::is_same_v<T, double>) {
if (isinf(val)) {
continue;
}
}
if (val == inline_null_value<T>()) {
continue;
}
Expand Down

0 comments on commit 8e28904

Please sign in to comment.