ighack opened a new issue #8147: I don't understand {"name": "latencyMs",
"type": "doubleSum", "fieldName": "latencyMs"}
URL: https://github.com/apache/incubator-druid/issues/8147
I need
select avg(latencyMs),min(latencyMs),sum(latencyMs) from mytable
so make config
I can only do that
"metricsSpec": [
{"name": "views", "type": "count"},
{"name": "latencyMs", "type": "doubleSum", "fieldName": "latencyMs"}
]
or
I should do this
"metricsSpec": [
{"name": "views", "type": "count"},
{"name": "latencyMs", "type": "doubleSum", "fieldName": "latencyMs"},
{"name": "latencyMs", "type": "doubleMin", "fieldName": "latencyMs"},
]
and what about avg?
"metricsSpec": [
{"name": "rows", "type": "count"},
{"name": "latencyMs_SUM", "type": "doubleSum", "fieldName":
"latencyMs"},
{"name": "latencyMs_MIN", "type": "doubleMin", "fieldName":
"latencyMs"},
],
"aggregations" : [{
{"type" : "count", "name" : "rows"},
{"type" : "doubleSum", "name" : "latencyMs_SUM", "fieldName" :
"latencyMs_SUM"}
}],
"postAggregations" : [{
"type" : "arithmetic",
"name" : "latencyMs_AVG",
"fn" : "/",
"fields" : [
{ "type" : "fieldAccess", "fieldName" : "latencyMs_SUM" },
{ "type" : "fieldAccess", "name" : "rows", "fieldName" : "rows" }
]
}]
is that right?
why do I use aggregations?
If I don't make aggregations,can I also "select
avg(latencyMs),min(latencyMs),sum(latencyMs) from mytable"
----------------------------------------------------------------
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]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]