licl2014 opened a new issue #10747:
URL: https://github.com/apache/druid/issues/10747


   Hyperunique is giving different results on multiple execution of same query
   
   ### Affected Version
   
   0.12.3
   
   ### Description
   
   What my query as follows:
   ```
   {
       "queryType":"timeseries",
       "dataSource":{
           "type":"table",
           "name":"datasource"
       },
       "intervals":{
           "type":"LegacySegmentSpec",
           "intervals":[
               "2020-12-31T16:00:00.000Z/2021-01-01T16:00:00.000Z"
           ]
       },
       "descending":false,
       "virtualColumns":[
   
       ],
       "filter":null,
       "granularity":{
           "type":"period",
           "period":"P1D",
           "timeZone":"Asia/Shanghai",
           "origin":null
       },
       "aggregations":[
           {
               "type":"hyperUnique",
               "name":"hll_cd",
               "fieldName":"cd",
               "isInputHyperUnique":false,
               "round":false
           }
       ],
       "postAggregations":[
   
       ],
       "context":{
           "groupByStrategy":"v2",
           "skipEmptyBuckets":true,
           "timeout":30000
       }
   }
   ```
   **Results**
   attempt1:
   ```
   [ {
     "timestamp" : "2021-01-01T00:00:00.000+08:00",
     "result" : {
       "hll_cd" : 3.0347768393719055E7
     }
   } ]
   ```
   
   attempt2:
   ```
   [ {
     "timestamp" : "2021-01-01T00:00:00.000+08:00",
     "result" : {
       "hll_cd" : 3.036636100442829E7
     }
   } ]
   ```


----------------------------------------------------------------
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



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@druid.apache.org
For additional commands, e-mail: commits-h...@druid.apache.org

Reply via email to