Skip to content

inconsistent result when sorted predicate does not contain value on some nodes #2672

@u007

Description

@u007

If you suspect this could be a bug, follow the template.

  • What version of Dgraph are you using?
    1.0.9

  • Have you tried reproducing the issue with latest release?
    version above

  • What is the hardware spec (RAM, OS)?
    8gb ram, macosx 10.13.6

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

index a predicate, for example: created_at @ time
insert several nodes without a created_at set,
then insert another several nodes with created_at

then query with orderasc/desc created_at and with first: 10

  • Expected behaviour and actual result.

result should show only nodes with created_at

actual results, 50% of times it return rows with created_at,
another 50% of times return rows without created_at

as stated in few last post here:

https://discuss.dgraph.io/t/orderasc-desc-by-object-that-is-missing-the-field-data/3389/9

Metadata

Metadata

Assignees

Labels

kind/bugSomething is broken.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions