Fix string to double conversion and row equivalent comparison - #7410
Merged
rapids-bot[bot] merged 24 commits intoMar 2, 2021
Conversation
…orrectly handles inf and nan.
…sue-5225 # Conflicts: # cpp/benchmarks/CMakeLists.txt
davidwendt
self-requested a review
February 18, 2021 18:31
davidwendt
requested changes
Feb 18, 2021
davidwendt
left a comment
Contributor
There was a problem hiding this comment.
This is excellent.
Looks like you reformatted the CMakeLists.txt file.
You should change that back please.
jrhemstad
reviewed
Feb 18, 2021
davidwendt
reviewed
Feb 22, 2021
davidwendt
reviewed
Feb 22, 2021
…sue-5225 # Conflicts: # cpp/benchmarks/CMakeLists.txt
davidwendt
requested changes
Feb 23, 2021
…rk.cpp Co-authored-by: David <45795991+davidwendt@users.noreply.github.com>
davidwendt
approved these changes
Feb 23, 2021
davidwendt
left a comment
Contributor
There was a problem hiding this comment.
Looks good. Thanks for doing this.
vuule
requested changes
Feb 26, 2021
vuule
left a comment
Contributor
There was a problem hiding this comment.
Couple suggestions, mostly related to data generation.
…generate columns of strings by calling to cudf::strings::to_floats
vuule
self-requested a review
March 1, 2021 22:09
vuule
approved these changes
Mar 1, 2021
Contributor
Author
|
@gpucibot merge. |
Contributor
|
@ttnghia you can't merge if CI is not passing... |
Contributor
|
@gpucibot rerun tests |
Contributor
Author
|
I see. Thanks Mark. |
# Conflicts: # cpp/benchmarks/CMakeLists.txt
Contributor
Author
|
@gpucibot merge. |
Contributor
|
@gpucibot merge |
rapids-bot Bot
pushed a commit
that referenced
this pull request
Mar 2, 2021
This is a part of #7410 and depends on it. The java tests when they were first written, for what ever reason, did not use the correct string representation for several values including double max. They ended up testing that the code was broken, which is not the right thing to do. This updates those to have the correct values, but also has a comment about why the ideal value to test for overflow into `Inf` and `-Inf` is not ideal, but is a work around for small issues with the parsing code still. Authors: - Robert (Bobby) Evans (@revans2) - Nghia Truong (@ttnghia) Approvers: - Jason Lowe (@jlowe) URL: #7473
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR fixes #5225 and fixes #5731 along with several improvements. In particular:
stodinconvert_floats.cu, which incorrectly usesmax_mantissa, thus produces incorrect results as mentioned in the issue [BUG] discrepency in casting String to double #5225. Note that this PR still cannot produce perfectly matched results withstd::atof, since handling float values nearinfis very difficult.corresponding_rows_not_equivalentwhich didn't handleinfandnan, thus it returned "equivalent" when comparing a valid float number withinf.std::atofresults for comparison.