Last active
December 19, 2015 11:49
-
-
Save intabulas/5950988 to your computer and use it in GitHub Desktop.
RethinkDB 1.7x Import Issue - JSON documents that contain nested arrays of objects dont import properly
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
rethinkdb import -c localhost:28015 -f import_test.json --table import_test.data |
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
[ | |
{ | |
"key": "sdadasdkjasdkljadasd", | |
"children": [ | |
{ "name": "bob" }, | |
{ "name": "steve" } | |
] | |
}, | |
{ | |
"key": "sdadassdsddkjasdkljadasd", | |
"children": [ | |
{ "name": "bob" }, | |
{ "name": "steve" } | |
] | |
}, | |
{ | |
"key": "sdadasdkjasdkljadassaasdd", | |
"children": [ | |
{ "name": "bob" }, | |
{ "name": "steve" } | |
] | |
}, | |
{ | |
"key": "sdadasdkjasdkljadassssd", | |
"children": [ | |
{ "name": "bob" }, | |
{ "name": "steve" } | |
] | |
} | |
] |
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
[ | |
{ | |
"id": "34bfc593-29d3-48ab-9f50-abe8a0641432", | |
"name": "steve" | |
}, | |
{ | |
"children": [ | |
null, | |
null | |
], | |
"id": "60836172-3b0a-41f3-b1da-962095e7ce1f", | |
"key": "sdadasdkjasdkljadasd" | |
}, | |
{ | |
"id": "c688bcca-426e-47f9-bf56-5c907d3424a2", | |
"name": "steve" | |
}, | |
{ | |
"id": "6ae42b4a-c4c9-40dd-b1e2-3d386bb96871", | |
"name": "steve" | |
}, | |
{ | |
"children": [ | |
null, | |
null | |
], | |
"id": "a49a6146-2733-482e-90d5-a37cbcb9431d", | |
"key": "sdadasdkjasdkljadassssd" | |
}, | |
{ | |
"id": "aa612fe0-eac1-46b8-94ba-8d6f17ba1995", | |
"name": "steve" | |
}, | |
{ | |
"children": [ | |
null, | |
null | |
], | |
"id": "1f02bc9d-c4dc-49d0-a2e8-3b4c0f51f944", | |
"key": "sdadasdkjasdkljadassaasdd" | |
}, | |
{ | |
"id": "7a44a266-5c62-4ee0-9365-9d97b470d967", | |
"name": "bob" | |
}, | |
{ | |
"id": "d0d775e6-c29a-4c15-870d-46a23f8d505a", | |
"name": "bob" | |
}, | |
{ | |
"children": [ | |
null, | |
null | |
], | |
"id": "67e178f2-155a-47b3-a678-c0453c7b90f5", | |
"key": "sdadassdsddkjasdkljadasd" | |
}, | |
{ | |
"id": "9e870611-d1ab-42cc-aa60-6ee10e01bf5f", | |
"name": "bob" | |
}, | |
{ | |
"id": "ce916e61-77bd-47b8-89b7-0839cec859e0", | |
"name": "bob" | |
} | |
] |
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
r.db('import_test').table('data') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment