-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix power function NaN handling so it returns NaN (#11210)
Summary: Pull Request resolved: #11210 The C++ std::pow function returns 1 when 1 is raised to NaN. It returns NaN for every other number except for 1 which is strange. This change makes sure it will return NaN. Query: select pow(c0, nan()) from (values 1.0) t(c0); Presto-0.289: Returns NaN Velox: Returns 1.0 Reviewed By: kgpai Differential Revision: D64145275 fbshipit-source-id: 2d4890ad47b2c140867328778d7102733cd1cb32
- Loading branch information
1 parent
a6899b7
commit a976ba5
Showing
2 changed files
with
29 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters