-
Notifications
You must be signed in to change notification settings - Fork 245
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
Initial support for reading decimal types from JSON and CSV #4825
Merged
andygrove
merged 11 commits into
NVIDIA:branch-22.04
from
andygrove:json-csv-decimal-support
Mar 7, 2022
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
ec66baa
Initial support for reading decimal types from JSON and CSV
andygrove 2b45083
update docs
andygrove edc8c71
Document behavior of JSON option allowNonNumericNumbers
andygrove ec31dc9
Improve JSON support for INF values
andygrove 3d121bb
improve decimal tests to cover different rounding cases
andygrove 55b350a
reduce the amount of regexp
andygrove addbe40
scalastyle
andygrove fcddeb1
fix regression and update generated docs
andygrove 84b0bae
merge from branch-22.04
andygrove 1a68c27
update compatibility guide
andygrove ecff2d2
update compatibility guide
andygrove File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
"number" | ||
-1 | ||
0 | ||
1. | ||
0.12 | ||
.12 | ||
+.12 | ||
-.12 | ||
1 | ||
1.01 | ||
12.34 | ||
12.3456 | ||
revans2 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
12345678.12 | ||
33.545454 | ||
33.454545 | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ "number": 0 } | ||
{ "number": 12 } | ||
{ "number": 12.0 } | ||
{ "number": 12. } | ||
{ "number": .34 } | ||
{ "number": +.34 } | ||
{ "number": -.34 } | ||
{ "number": 0.34 } | ||
{ "number": 12.34 } | ||
{ "number": 12.3456 } | ||
{ "number": 12.345678 } | ||
revans2 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
{ "number": 123456.78 } | ||
{ "number": 33.454545 } | ||
{ "number": 33.545454 } |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
{ "number": "NaN" } | ||
{ "number": "Infinity" } | ||
{ "number": "-Infinity" } | ||
{ "number": NaN } | ||
{ "number": +INF } | ||
{ "number": -INF } | ||
{ "number": Infinity } | ||
{ "number": +Infinity } | ||
{ "number": -Infinity } |
12 changes: 0 additions & 12 deletions
12
integration_tests/src/test/resources/nan_and_inf_edge_cases.json
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
integration_tests/src/test/resources/nan_and_inf_invalid.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ "number": NAN } | ||
{ "number": nan } | ||
{ "number": INF } | ||
{ "number": Inf } | ||
{ "number": +Inf } | ||
{ "number": -Inf } | ||
{ "number": "NAN" } | ||
{ "number": "nan" } | ||
{ "number": "INF" } | ||
{ "number": "Inf" } | ||
{ "number": "+Inf" } | ||
{ "number": "-Inf" } |
6 changes: 6 additions & 0 deletions
6
integration_tests/src/test/resources/nan_and_inf_strings.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ "number": "NaN" } | ||
{ "number": "+INF" } | ||
{ "number": "-INF" } | ||
{ "number": "Infinity" } | ||
{ "number": "+Infinity" } | ||
{ "number": "-Infinity" } |
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes are not specific to this PR and could be PR'd separately