-
Notifications
You must be signed in to change notification settings - Fork 236
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
Specify recoverWithNull when reading JSON files #9304
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
bc6a3df
Specify recoverWithNull when reading JSON files
andygrove b2f5379
revert change in GpuJsonToStructs
andygrove a38a2df
fix regression
andygrove 9f0273e
add more test cases
andygrove fa4027e
add link to issues
andygrove 8a603cf
Merge remote-tracking branch 'nvidia/branch-23.12' into json-recovery…
andygrove 54e8437
more tests
andygrove 5f961db
make more changes to test data
andygrove 97dd7b5
test more edge cases
andygrove 20036a3
un xfail test that now passes due to recent cuDF fix, test with v1 an…
andygrove 8059a12
Merge remote-tracking branch 'nvidia/branch-23.12' into json-recovery…
andygrove 26ea5b2
enable more tests
andygrove 0fa0a1d
update GitHub issue link
andygrove 5d36743
Merge remote-tracking branch 'nvidia/branch-23.12' into json-recovery…
andygrove b76db2b
update tests
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ "number": 1 } | ||
{ , } | ||
{ : 2 } | ||
{ "number": 2 } | ||
{ "number": } | ||
not_json | ||
{ 4 } | ||
{ "number": 5 } |
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,4 @@ | ||
{ "number": 1 } | ||
{ "number": 2 } | ||
{ "number": 3 | ||
{ "number": 4 } |
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,4 @@ | ||
{ "number": 1 } | ||
{ "number": 2 } | ||
{ "number": 3 } { "number": 4 } | ||
{ "number": 5 } |
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,4 @@ | ||
{ "number": 1 } | ||
{ "number": 2 } | ||
{ "number": 3 } x | ||
{ "number": 5 } |
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,10 @@ | ||
{ "var0": true, "var1": 123.45, "var2": [{ "var0": 123.45, "var1": "hello", "var2": 123.45 }, { "var0": null, "var1": "hello", "var2": null }, 123.45] } | ||
{ "var0": true, "var1": 123.45, "var2": [{ "var0": true, "var1": "hello", "var2": true }, "hello", true] } | ||
{ "var0": null, "var1": true, "var2": "hello" } | ||
{ "var0": "hello", "var1": null, "var2": [true, { "var0": true, "var1": "hello", "var2": null }, null] } | ||
{ "var0": [null, true, null], "var1": "hello", "var2": [[123.45, true, 123.45], { "var0": true, "var1": true, "var2": "hello" }, { "var0": null, "var1": 123.45, "var2": 123.45 }] } | ||
{ "var0": null, "var1": { "var0": [null, 123.45, true], "var1": "hello", "var2": "hello" }, "var2": 123.45 } | ||
{ "var0": null, "var1": { "var0": null, "var1": "hello", "var2": 123.45 }, "var2": 123.45 } | ||
{ "var0": true, "var1": true, "var2": [[123.45, null, 123.45], { "var0": true, "var1": null, "var2": 123.45 }, ["hello", true, "hello"]] } | ||
{ "var0": true, "var1": [{ "var0": true, "var1": "hello", "var2": null }, null, [true, null, null]], "var2": [[123.45, null, true], 123.45, { "var0": null, "var1": 123.45, "var2": "hello" }] } | ||
{ "var0": 123.45, "var1": "hello", "var2": 123.45 } |
14 changes: 14 additions & 0 deletions
14
integration_tests/src/test/resources/mixed-primitives-nested.ndjson
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 @@ | ||
{ "a": 123.45, "b": { "b": 123.45, "c": "hello", "d": 123.45 }, "c": { "a": 123.45, "b": "hello", "c": 123.45, "d": "hello" } } | ||
{ "a": 123.45, "b": { "a": "hello", "b": 123.45, "c": "hello", "d": 123.45 }, "c": { "a": 123.45, "b": "hello", "c": 123.45, "d": "hello" } } | ||
{ "a": 123.45, "b": { "a": "hello", "b": 123.45, "c": "hello", "d": 123.45 }, "c": { "a": 123.45, "b": "hello", "c": 123.45, "d": "hello" } } | ||
{ "a": 123.45, "b": { "a": "hello", "b": 123.45, "c": "hello", "d": 123.45 }, "c": { "b": "hello", "c": 123.45, "e": "hello" } } | ||
|
||
{ "a": 123.45, "b": { "a": "hello", "b": 123.45, "c": "hello", "d": 123.45 }, "c": { "a": 123.45, "b": "hello", "c": 123.45, "d": "hello" } } | ||
{ "a": 123.45, "b": { "a": "hello", "b": "123.45", ",c": "hello", "d": 123.45 }, "c": { "a": 123.45, "b": "hello", "c": 123.45, "d": "hello" } } | ||
{ "a": 123.45, "b": { "a": "hello", "b": 123.45, "c": "hello", "d": 123.45 }, "c": { "a": 123.45, "b": "hello", "c": 123.45, "d": "hello" } } | ||
|
||
{ "a": 123.45 } | ||
{ "b": { "a": "hello", "b": 123.45, "c": "hello", "d": 123.45 } } | ||
{ "c": { "a": 123.45, "b": "hello", "c": 123.45, "d": "hello" } } | ||
{ "a": 123.45, "b": { "a": "hello", "b": 123.45, "c": "hello", "d": true }, "c": { "a": 123.45, "b": "hello", "c": 123.45, "d": "hello" } } | ||
{ "a": 123.45, "b": { "a": "hello", "b": 123.45, "c": "hello", "d": 123.45 }, "c": { "a": 123.45, "b": "hello", "c": 123.45, "d": "hello" } } |
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,9 @@ | ||
{ "var0": "hello", "var1": 3.141, "var2": true } | ||
"var0": "hello", "var1": 3.141, "var2": true } | ||
{ "var0": "hello", "var1": true, "var2": "hello" } | ||
{ "var0": true, "var1": "hello", "hello" } | ||
{ "var0": true, "var1": "hello", "var2": "hello" } { "var0": true, "var1": "hello", "var2": "hello" } | ||
{ "var0": true, "var1": "hello", "var2" } | ||
{ "var0": 123, "var1": true, "var2" true } | ||
{ "var0": 123, "var1": true "var2": true | ||
{ "var0": "hello", "var1": "hello", "var2": "hello" } |
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,10 @@ | ||
{ "a": 123.45, "b": { "a": "hello", "b": 123.45, "c": "hello", "d": 123.45 }, "c": { "a": 123.45, "b": "hello", "c": 123.45, "d": "hello" } } | ||
{ "a": 123.45, "b": { "a": "hello", "b": 123.45, "c": "hello", "d": 123.45 }, "c": { "a": 123.45, "b": "hello", "c": 123.45, "d": "hello" } } | ||
{ "a": 123.45, "b": { "a": "hello", "b": 123.45, "c": "hello", "d": 123.45 }, "c": { "a": 123.45, "b": "hello", "c": 123.45, "d": "hello" } } | ||
{ "a": 123.45, "b": { "a": "hello", "b": 123.45, "c": "hello", "d": 123.45 }, "c": { "a": 123.45, "b": "hello", "c": 123.45, "d": "hello" } } | ||
{ "a": 123.45, "b": { "a": "hello", "b": 123.45, "c": "hello", "d": 123.45 }, "c": { "a": 123.45, "b": "hello", "c": 123.45, "d": "hello" } } | ||
{ "a": 123.45, "b": { "a": "hello", "b": 123.45, "c": "hello", "d": 123.45 }, "c": { "a": 123.45, "b": "hello", "c": 123.45, "d": "hello" } } | ||
{ "a": 123.45, "b": { "a": "hello", "b": 123.45, "c": "hello", "d": 123.45 }, "c": { "a": 123.45, "b": "hello", "c": 123.45, "d": "hello" } } | ||
{ "a": 123.45, "b": { "a": "hello", "b": 123.45, "c": "hello", "d": 123.45 }, "c": { "a": 123.45, "b": "hello", "c": 123.45, "d": "hello" } } | ||
{ "a": 123.45, "b": { "a": "hello", "b": 123.45, "c": "hello", "d": 123.45 }, "c": { "a": 123.45, "b": "hello", "c": 123.45, "d": "hello" } } | ||
{ "a": 123.45, "b": { "a": "hello", "b": 123.45, "c": "hello", "d": 123.45 }, "c": { "a": 123.45, "b": "hello", "c": 123.45, "d": "hello" } } |
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
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.
Parsing exception messages is an anti-pattern. Would be nice to have a followup to get a more specific exception type to help distinguish this case.
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.
I agree, probably would be better to do this for all Exceptions and AssertionErrors.
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.
Thanks. I filed rapidsai/cudf#14331