Skip to content

Nested / cyclic filtering not working #5045

@ppp225

Description

@ppp225

What version of Dgraph are you using?

v20.03.0-beta.20200320, v2.0.0-rc1

Have you tried reproducing the issue with the latest release?

yes

What is the hardware spec (RAM, OS)?

linux, windows, 32G

Steps to reproduce the issue (command/config used to run Dgraph).

Lets say I have a schema like this:

Car---> Stat
  |       ^
  v        \
Contract->Group
  |
  v
Dealer

When doing the following in the same query block:
Car -> S as Stat
Car -> Contract -> Group -> Stat @filter(uid(S))

the filter result is empty, even if count(S) == 1, and without the filter, the query returns what it is supposed to.

(dgraph code example in next post)

Expected behaviour and actual result.

As I understand, S should contain the uidList of matched Stat nodes. So when filtering Stat nodes with it, it should work, and not be empty.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions