Skip to content
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

Set default type predicates as lists. #3792

Closed
wants to merge 1 commit into from

Conversation

martinmr
Copy link
Contributor

@martinmr martinmr commented Aug 12, 2019

If users add multiple entries to predicates of default type, the current
behavior is to overwrite existing values. This can lead to data loss in
cases where users didn't intend to do that or forgot to set a schema for
the predicate beforehand.

This change makes it so that predicates of default type are created as
lists.

Fixes #3788


This change is Reviewable

If users add multiple entries to predicates of default type, the current
behavior is to overwrite existing values. This can lead to data loss in
cases where users didn't intend to do that or forgot to set a schema for
the predicate beforehand.

This change makes it so that predicates of default type are created as
lists.
@martinmr martinmr requested review from manishrjain and a team as code owners August 12, 2019 18:52
Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

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

✅ A review job has been created and sent to the PullRequest network.


@martinmr you can click here to see the review status or cancel the code review job.

@martinmr
Copy link
Contributor Author

I think I need this to load the arango benchmark data without having to figure out the schema (I don't think any of their benchmarks care about the schema).

@martinmr martinmr closed this Aug 12, 2019
@martinmr martinmr deleted the martinmr/default-as-list branch August 12, 2019 19:33
@martinmr
Copy link
Contributor Author

Doesn't work as expected.

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 isn't automatically setting values ​​as list in structured mutations as list.
1 participant