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: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@druid.apache.org For additional commands, e-mail: commits-h...@druid.apache.org