-
Notifications
You must be signed in to change notification settings - Fork 1.5k
@normalize does not flatten always #4198
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
Comments
I can't reproduce it in master. So probably it is fixed if it was something. Also, there have been some changes recently in
<log_for>: uid @reverse .
<type_of>: [uid] .
<title>: string .
<created>: string . {
"set": [{
"created": "2019-10-20T16:26:12.206897Z",
"title": "normalize does not flatten",
"log_for": {
"user": ""
},
"type_of": {
"type": "test"
}
}
]
} {
logs(func: has(~log_for)) @normalize {
userId: uid
logs: ~log_for {
logId: uid
title: title
createdOn: created
type_of {
typeId: uid
}
}
}
} Result{
"data": {
"logs": [
{
"createdOn": "2019-10-20T16:26:12.206897Z",
"logId": "0x7535",
"title": "normalize does not flatten",
"typeId": "0x7537",
"userId": "0x7536"
}
]
} |
@MichelDiz Did you also try with the declaration:
plain |
This is reproducible on v1.1.0, and not on master. As @asa511 reported, this happens with predicates with the one-to-one Steps to reproduce the issue:
Steps to get expected response
|
I'll close this issue since this is fixed in master. The next Dgraph release will contain the fix. For now, you can use the master version as of #4042 if you need this fix. We can also cut a release-candidate version for you if needed. |
#3751 # What version of Dgraph are you using?
v1.1.0
Have you tried reproducing the issue with the latest release?
NA
What is the hardware spec (RAM, OS)?
MacOS 10.14.6, 16 GB
Steps to reproduce the issue (command/config used to run Dgraph).
Expected behaviour
actual result.
The
@normalize
clause was working fine when I was using the following declaration:It stopped working when I changed it to:
The text was updated successfully, but these errors were encountered: