Skip to content

Offset fails with multiple order statements #3366

@Awoogamuffin

Description

@Awoogamuffin
  • What version of Dgraph are you using?

1.0.14 (latest at time of writing)

  • Have you tried reproducing the issue with latest release

Yes

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

If you order a set of results with two ordercommands (for example “orderdesc: firstName, orderdesc: lastName) then use offset, the results are not as expected.

From multiple tests it is clear that offset discards the first N results not of the final order (using both firstName and lastName), but only the first N results of what you would get if you only used the first order command.

  • Expected behaviour and actual result.

For multiple examples of datasets (using both datetime values and string values) displaying this behaviour go to this thread in the discuss forums:

https://discuss.dgraph.io/t/offset-appears-not-to-work-with-multiple-order-statements/4421/13

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