Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix java float/double parsing tests [skip ci] #7473

Merged
merged 30 commits into from
Mar 2, 2021

Conversation

revans2
Copy link
Contributor

@revans2 revans2 commented Mar 1, 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.

ttnghia and others added 29 commits February 17, 2021 21:06
…sue-5225

# Conflicts:
#	cpp/benchmarks/CMakeLists.txt
…sue-5225

# Conflicts:
#	cpp/benchmarks/CMakeLists.txt
…sue-5225

# Conflicts:
#	cpp/benchmarks/CMakeLists.txt
…sue-5225

# Conflicts:
#	cpp/benchmarks/CMakeLists.txt
@revans2 revans2 added the bug Something isn't working label Mar 1, 2021
@revans2 revans2 self-assigned this Mar 1, 2021
@github-actions github-actions bot added CMake CMake build issue Java Affects Java cuDF API. libcudf Affects libcudf (C++/CUDA) code. labels Mar 1, 2021
@revans2 revans2 changed the title Fix java float/double parseing tests Fix java float/double parseing tests [skip ci] Mar 1, 2021
@codecov
Copy link

codecov bot commented Mar 1, 2021

Codecov Report

Merging #7473 (c9d52e1) into branch-0.19 (43b44e1) will increase coverage by 0.47%.
The diff coverage is 87.63%.

Impacted file tree graph

@@               Coverage Diff               @@
##           branch-0.19    #7473      +/-   ##
===============================================
+ Coverage        81.80%   82.28%   +0.47%     
===============================================
  Files              101      101              
  Lines            16695    17247     +552     
===============================================
+ Hits             13658    14191     +533     
- Misses            3037     3056      +19     
Impacted Files Coverage Δ
python/cudf/cudf/utils/docutils.py 97.36% <50.00%> (-2.64%) ⬇️
python/cudf/cudf/testing/testing.py 80.00% <57.14%> (-1.04%) ⬇️
python/cudf/cudf/core/column/timedelta.py 88.57% <75.00%> (+0.33%) ⬆️
python/cudf/cudf/core/column/categorical.py 91.74% <77.14%> (-0.49%) ⬇️
python/cudf/cudf/core/column/datetime.py 89.63% <78.57%> (+0.58%) ⬆️
python/dask_cudf/dask_cudf/core.py 71.67% <79.41%> (-2.60%) ⬇️
python/cudf/cudf/core/multiindex.py 82.90% <90.90%> (+0.73%) ⬆️
python/cudf/cudf/core/tools/datetimes.py 84.53% <93.33%> (+0.89%) ⬆️
python/cudf/cudf/core/column_accessor.py 95.47% <95.65%> (+2.53%) ⬆️
python/cudf/cudf/core/column/column.py 87.86% <96.42%> (+0.43%) ⬆️
... and 61 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f8fa481...c1bb3f7. Read the comment docs.

@github-actions github-actions bot removed libcudf Affects libcudf (C++/CUDA) code. CMake CMake build issue labels Mar 2, 2021
@revans2 revans2 marked this pull request as ready for review March 2, 2021 22:21
@revans2 revans2 requested a review from a team as a code owner March 2, 2021 22:21
@jlowe jlowe changed the title Fix java float/double parseing tests [skip ci] Fix java float/double parsing tests [skip ci] Mar 2, 2021
@revans2
Copy link
Contributor Author

revans2 commented Mar 2, 2021

@gpucibot merge

@rapids-bot rapids-bot bot merged commit cf4c54d into rapidsai:branch-0.19 Mar 2, 2021
@revans2 revans2 deleted the fix_double_parse_tests branch March 2, 2021 22:28
"1.7976931348623159E308",
"-1.7976931348623157E308",
// Current CUDF Code does not detect overflow for this. "-1.7976931348623158E308",
// So we make it a little larger for this test
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

smaller?

@vyasr vyasr added 4 - Needs Review Waiting for reviewer to review or respond and removed 4 - Needs cuDF (Java) Reviewer labels Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4 - Needs Review Waiting for reviewer to review or respond bug Something isn't working Java Affects Java cuDF API. non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants