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 and zhztheplayer committed Feb 8, 2022
1 parent 64b885c commit c90ca44
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 @@ -229,7 +229,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 c90ca44

Please sign in to comment.