You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2019/12/04 03:43:29 UTC
[GitHub] [incubator-druid] alex601049502 opened a new issue #8985:
extension-contrib distinctCount function calc result is wrong #BUG
alex601049502 opened a new issue #8985: extension-contrib distinctCount function calc result is wrong #BUG
URL: https://github.com/apache/incubator-druid/issues/8985
Druid Version:0.12.3
I used distinctCount as aggregations‘s type,when dimension and aggregation contain the same fields, the result is wrong.
Following is my request json,
`{
"queryType": "groupBy",
"dataSource": "oms-order-product-detail",
"dimensions": [
"warehouse_name",
"order_no"
],
"aggregations": [
{
"fieldName": "order_no",
"fieldNames": [
"order_no"
],
"type": "distinctCount",
"name": "COUNT_DISTINCT(order_no)"
}
],
"granularity": "all",
"postAggregations": [],
"intervals": "1901-01-01T00:00:00+08:05:43/2101-01-01T00:00:00+08:00",
"filter": {
"type": "selector",
"dimension": "order_date",
"value": "2019-09-10"
},
"limitSpec": {
"type": "default",
"limit": 10000,
"columns": [
{
"dimension": "COUNT_DISTINCT(order_no)",
"direction": "descending"
}
]
}
}`
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org