forked from facebookincubator/velox
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix NaN handling for histogram, map_agg and map_union aggregates (fac…
…ebookincubator#10071) Summary: Pull Request resolved: facebookincubator#10071 Ensures that NaNs with different binary representations are considered equal and deduplicated when used as keys in a map. Summary of changes: For primitive types, we ensure that the Map data structure used to accumulate uses hash and equality functions that handle NaN. For complex input it uses BaseVector::hashValueAt() and ContainerRowSerde::compare() as a hash and equality function, respectively which were fixed to handle NaNs properly in facebookincubator#9963 Reviewed By: kgpai Differential Revision: D58209683 fbshipit-source-id: f8697f248a0346456597ca71105eb5bcf1b71f8b
- Loading branch information
1 parent
e452936
commit 0b5bf0f
Showing
5 changed files
with
173 additions
and
4 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
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
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