Skip to content

Commit

Permalink
fix normalize function (apache#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
rui-mo authored Apr 22, 2021
1 parent db28cb8 commit d52b00b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/gandiva/precompiled/arithmetic_ops.cc
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ NUMERIC_DATE_TYPES(BINARY_RELATIONAL_NAN, greater_than_or_equal_to_with_nan, >=)
gdv_##OUT_TYPE normalize_##IN_TYPE(gdv_##IN_TYPE in) { \
if (isnan(in)) { \
return 0.0 / 0.0; \
} else if (in < 0 && std::abs(in) < 0.0000001) { \
} else if (std::abs(in) < 0.0000001) { \
return 0.0; \
} else { \
return in; \
Expand Down

0 comments on commit d52b00b

Please sign in to comment.