While using hyperunique aggregation, I am getting different values on multiple execution of the same query.
Query:
{
"queryType": "groupBy",
"dataSource": "actives_data_source",
"granularity": {
"type": "period",
"period": "P1D",
"origin": "2017-12-01T10:00:00.000Z"
},
"dimensions": ["state", "location_class"],
"intervals": "2017-12-11T10:00:00.000Z/2017-12-15T10:00:00.000Z",
"aggregations":[
{"type": "hyperUnique", "name": "actives", "fieldName": "user_id"}
]
}
ResultSet:
Execution Attempt 1:
{
"version": "v1",
"timestamp": "2017-12-11T10:00:00.000Z",
"event": {
"location_class": "1L",
"state": "Bihar",
"actives": 19396.80653321458
}
}
Execution Attempt 2:
{
"version": "v1",
"timestamp": "2017-12-11T10:00:00.000Z",
"event": {
"location_class": "1L",
"state": "Bihar",
"actives": 19389.034881761647
}
}
Execution Attempt 3:
{
"version": "v1",
"timestamp": "2017-12-11T10:00:00.000Z",
"event": {
"location_class": "1L",
"state": "Bihar",
"actives": 19392.92087779155
}
}
On every execution I am getting one of the 3 highlighted values. Its random.
Observed same behaviour on following druid versions:
0.8.3
0.11.0
Has anyone observed this behaviour and what was the root cause.