-
Notifications
You must be signed in to change notification settings - Fork 240
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
Update JsonToStructs and ScanJson to have white space normalization #10575
Merged
revans2
merged 6 commits into
NVIDIA:branch-24.04
from
revans2:from_json_normal_whitespace
Mar 15, 2024
Merged
Changes from 3 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
11761c3
Update JsonToStructs and ScanJson to have white space normalization
revans2 8369bd9
Some more fixes
revans2 ff77330
Update reason for test failure
revans2 ae86e38
Merge branch 'branch-24.04' into from_json_normal_whitespace
revans2 6079f1d
Review comments
revans2 0bda0fb
Review comments and Scala2.13 fixes
revans2 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
12 changes: 12 additions & 0 deletions
12
integration_tests/src/test/resources/int_array_formatted.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 @@ | ||
{"data": [1,0]} | ||
{"data": [-1,,100]} | ||
{"data": [-0,5,6,7 ,8 , 9 ]} | ||
{"data": [0]} | ||
{"data": [127, -128]} | ||
{"data": []} | ||
{"data": [32767, -32768]} | ||
{"data": [2147483647, -2147483648]} | ||
{"data": [9223372036854775807,-9223372036854775808]} | ||
{"data": [9223372036854775808, -9223372036854775809]} | ||
{"data": [99999999999999999999999999999999999999, -99999999999999999999999999999999999999]} | ||
{"data": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]} |
21 changes: 21 additions & 0 deletions
21
integration_tests/src/test/resources/int_mixed_array_struct_formatted.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,21 @@ | ||
{"data": {"A": 0, "B": 1}} | ||
{"data": [1,0]} | ||
{"data": {"A": 1}} | ||
{"data": [-1,,100]} | ||
{"data": {"B": 50}} | ||
{"data": [0]} | ||
{"data": null} | ||
{"data": []} | ||
{"data": {"B": -128, "A": 127}} | ||
{"data": [127, -128]} | ||
{"data": {"A": 32767, "B": -32767}} | ||
{"data": [32767, -32768]} | ||
{"data": {"A": 214783647, "B": -2147483648}} | ||
{"data": [2147483647, -2147483648]} | ||
{"data": {"A": 9223372036854775807, "B": -9223372036854775808}} | ||
{"data": [9223372036854775807,-9223372036854775808]} | ||
{"data": {"A": 9223372036854775808,, "B": -9223372036854775809}} | ||
{"data": [9223372036854775808, -9223372036854775809]} | ||
{"data": {"B": 99999999999999999999999999999999999999, "A": -99999999999999999999999999999999999999}} | ||
{"data": [99999999999999999999999999999999999999, -99999999999999999999999999999999999999]} | ||
{"data": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]} |
5 changes: 5 additions & 0 deletions
5
integration_tests/src/test/resources/int_struct_formatted.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,5 @@ | ||
{"data": {"A": 0, "B": 1}} | ||
{"data": {"A": 1}} | ||
{"data": {"B": 50}} | ||
{"data": {"B": -128, "A": 127}} | ||
{"data": {"B": 99999999999999999999, "A": -9999999999999999999}} |
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.
Does the handler need to return a mutable ArrayBuffer? I think the handler could return an immutable Seq given how it's being used, and that seems more flexible and less error-prone than forcing an ArrayBuffer here.