bbecker-te edited a comment on issue #8970:
URL: https://github.com/apache/druid/issues/8970#issuecomment-829622132
Here is an example of our problem:
```
{
"queryType": "groupBy",
"dataSource": "cea_http_1m",
"intervals": {
"type": "intervals",
"intervals": [
"2021-04-29T21:30:00.000Z/2021-04-29T22:00:00.001Z"
]
},
"granularity": "none",
"filter":{
"type":"and",
"fields":[
{
"type":"in",
"dimension":"taskId",
"values":[
"184410"
]
},
{
"type": "selector",
"dimension": "errorType",
"value": "DNS",
}
]
},
"aggregations":[
{
"type":"count",
"name":"count"
},
{
"type":"longSum",
"name":"value",
"expression": "if (errorType == 'DNS', 1, 0)"
},
{
"type": "filtered",
"aggregator": {
"type": "count",
"name": "filtered_aggregation"
},
"filter": {
"type": "selector",
"dimension": "errorType",
"value": "DNS"
},
"name": "filtered_aggregation"
}
]
}
```
Produces this

The 3rd and 4th columns should have same values.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]