Skip to content

Do not include empty nodes in the export output.#4773

Merged
martinmr merged 1 commit intomasterfrom
martinmr/empty-node-export
Feb 13, 2020
Merged

Do not include empty nodes in the export output.#4773
martinmr merged 1 commit intomasterfrom
martinmr/empty-node-export

Conversation

@martinmr
Copy link
Copy Markdown
Contributor

@martinmr martinmr commented Feb 13, 2020

Empty nodes are not included in the export output but the separator (a
comma in the case of JSON) is being appended. The fix is to skip over
empty values.

Added a deleted node to the exported graph to ensure that these type of
nodes are handled properly.

Fixes #3610


This change is Reviewable

Empty nodes are not included in the export output but the separator (a
comma in the case of JSON) is being appended. The fix is to skip over
empty values.

Added a deleted node to the exported graph to ensure that these type of
nodes are handled properly.
@martinmr martinmr requested review from a team and MichelDiz February 13, 2020 20:24
Copy link
Copy Markdown
Contributor

@danielmai danielmai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 3 of 3 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @manishrjain and @MichelDiz)

Copy link
Copy Markdown
Contributor

@MichelDiz MichelDiz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 3 of 3 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @manishrjain)

@martinmr martinmr merged commit e96fb63 into master Feb 13, 2020
@martinmr martinmr deleted the martinmr/empty-node-export branch February 13, 2020 22:57
@danielmai
Copy link
Copy Markdown
Contributor

@martinmr can you backport this to release/v1.2?

martinmr added a commit that referenced this pull request Mar 6, 2020
Empty nodes are not included in the export output but the separator (a
comma in the case of JSON) is being appended. The fix is to skip over
empty values.

Added a deleted node to the exported graph to ensure that these type of
nodes are handled properly.
@martinmr
Copy link
Copy Markdown
Contributor Author

martinmr commented Mar 6, 2020

#4896

martinmr added a commit that referenced this pull request Mar 6, 2020
Empty nodes are not included in the export output but the separator (a
comma in the case of JSON) is being appended. The fix is to skip over
empty values.

Added a deleted node to the exported graph to ensure that these type of
nodes are handled properly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Dgraph exports incorrect data in JSON and RDF formats.

3 participants