-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Dgraph exports incorrect data in JSON and RDF formats. #3610
Comments
#3478 seems related. |
Okay, that was easy to understand what is happening. The JSON export parser. Somehow is not ignoring the deleted nodes. First, I exported the just loaded DB. And then deleted the
And exported it again
Boom! the ghost node appears letting his comma behind. The test was done with the version bellow
|
If you suspect this could be a bug, follow the template.
What version of Dgraph are you using?
master dbd7540
Have you tried reproducing the issue with latest release?
Yes. This issue does not happen in v1.0.15.
Steps to reproduce the issue (command/config used to run Dgraph).
Use live loader or bulk loader to re-import the results back to Dgraph. They don't work since the exports output invalid triples. These exports are incredibly messed up.
Actual result
Trying to load the JSON export shows this error:
The beginning of the json export a single line with just a comma,
Irrespective of the line with just the comma, when counting the number of records between the RDF and JSON exports there's missing triples in the JSON export.
And the JSON export has triples that don't make sense based on the initial data set, like these:
Schema:
Export data, where
name
is a uid andcinematography
is a language string:The RDF export has lines like these:
Expected behaviour
The export data should be valid inputs to import back into Dgraph.
The text was updated successfully, but these errors were encountered: