-
Notifications
You must be signed in to change notification settings - Fork 236
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Specify recoverWithNull when reading JSON files (#9304)
Signed-off-by: Andy Grove <[email protected]>
- Loading branch information
Showing
10 changed files
with
109 additions
and
2 deletions.
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