Moved from GitHub dgraph/3790
Posted by d4l3k:
If you suspect this could be a bug, follow the template.
- What version of Dgraph are you using?
v1.0.16
-
Have you tried reproducing the issue with latest release?
Yes -
What is the hardware spec (RAM, OS)?
32GB ram, Arch linux, running in docker-compose from official images -
Steps to reproduce the issue (command/config used to run Dgraph).
{
doc(func: eq(url, "https://www.goodreads.com/book/show/3")) @ignorereflex {
uid
~likes {
likes @facets(rating) {
uid
url
}
}
}
}
schema
<likes>: uid @count @reverse .
<url>: string @index(hash) @upsert .
- Expected behaviour and actual result.
Documents ignored by @ignorereflex should not return facet information.
In reality you get an empty entry without the UID.
{
"extensions": {
"server_latency": {
"parsing_ns": 17583,
"processing_ns": 45060798,
"encoding_ns": 11945009
},
"txn": {
"start_ts": 5486919
}
},
"data": {
"doc": [
{
"uid": "0x8e1065",
"~likes": [
{
"likes": [
{ // this entry should not be present
"likes|rating": 5
},
{
"uid": "0x8e1067",
"url": "https://www.goodreads.com/book/show/34262",
"likes|rating": 5
},
{
"uid": "0x8e1068",
"url": "https://www.goodreads.com/book/show/2767052",
"likes|rating": 5
},
{
"uid": "0x8e1069",
"url": "https://www.goodreads.com/book/show/41865",
"likes|rating": 3
},
{
"uid": "0x8e106a",
"url": "https://www.goodreads.com/book/show/28187",
"likes|rating": 5
}
]
},
{
"likes": [
{
"uid": "0x8e1068",
"url": "https://www.goodreads.com/book/show/2767052"
},
...