Moved from GitHub dgraph/5630
Posted by mikehawkes:
What version of Dgraph are you using?
20.03.3
Have you tried reproducing the issue with the latest release?
Yes
What is the hardware spec (RAM, OS)?
Docker image running on Mac Pro (32GiB RAM; 18 Core; MacOS 10.14.6)
Steps to reproduce the issue (command/config used to run Dgraph).
Run the following query:
data (func:ge(hours.tracked, 2020-01-01)) @filter(le(hours.tracked, 2020-01-31)) {
hours.tracked
}
Expected behaviour and actual result.
Expected:
{
"data": {
"data": [
{
"hours.tracked": "2020-01-27T00:00:00Z"
},
{
"hours.tracked": "2020-01-30T00:00:00Z"
},
{
"hours.tracked": "2020-01-27T00:00:00Z"
},
...
Instead, I get nothing back.
{
"data": {
"data": []
},
"extensions": {
"server_latency": {
"parsing_ns": 176200,
"processing_ns": 124909100,
"encoding_ns": 20300,
"assign_timestamp_ns": 6015700,
"total_ns": 131698500
},
"txn": {
"start_ts": 2215408
},
"metrics": {
"num_uids": {
"hours.tracked": 0
}
}
}
}
Yet, if I run the query (against the same data) as:
query {
var (func:ge(hours.tracked, 2020-01-01)) {
u as uid
}
data(func:le(hours.tracked,2020-01-31)) @filter(uid(u)) {
hours.tracked
}
}
I get the expected result.