- 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
1.0.14 (latest at time of writing)
Yes
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.
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