Skip to content

Query results are flaky and inconsistent with filter usage #5046

@dhagrow

Description

@dhagrow

What version of Dgraph are you using?

v1.2.0

Have you tried reproducing the issue with the latest release?

Yes, v1.2.2 has the same issue.

What is the hardware spec (RAM, OS)?

DigitalOcean droplets
4 core Intel Xeon
8GB RAM
Ubuntu 18.04.3

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

We have a query that looks like this:

{
  q(func: type(process)) @filter(gt(process.started_at, "2020-03-25T00:00:00")) {
    count(uid)
    process.started_at
  }
}

And data with process.started_at values beginning as early as 2020-03-19.

Expected behaviour and actual result.

The query should return all "process" nodes with process.started_at values greater than 2020-03-25T00:00:00. Instead the earliest date value it is returning is 2020-03-26T18:00:10.766802Z.

Removing the filter returns "process" nodes that should match the filter value, such as 2020-03-25T15:48:07.346116Z.

Additional context here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething is broken.status/acceptedWe accept to investigate/work on it.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions