Closed pdeva closed 4 years ago
ahh i notice, that the post agg requires a field
type of fieldaccess, not a string.
using this works:
"field": {
"type": "fieldAccess",
"fieldName": "value"
}
That said, I do think the error message can be improved a lot, so i am keeping this open for now
Hi, Btw the mentioned documentation is also very confusing, because it mentions the following
"field" : <post aggregator that refers to a DoublesSketch (fieldAccess or another post aggregator)>
while it seems, by your example than you refer an aggregator (and not a post aggregator), i.e. "value" in your example. Am I interpreting right ?
It is very confusing to use the same name for the original metric and the aggregator using it, making impossible to read most examples (including the few ones in the docs) without ambiguity.
At this time, I have not been able to use quantilesDoublesSketchToQuantiles to compute medians for example :
"aggregations":[
{
"type" : "quantilesDoublesSketch",
"name" : "datasketch_duration",
"fieldName" : "duration",
"k": 256
}
]
....
"postAggregations":[
{
"type" : "quantilesDoublesSketchToQuantile",
"name": "medianDurationDataSketches",
"field" : {
"fieldName":"datasketch_duration",
"type":"fieldAccess"
},
"fraction" : 0.5
}
]
This issue has been marked as stale due to 280 days of inactivity. It will be closed in 4 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the dev@druid.apache.org list. Thank you for your contributions.
bump
This issue is no longer marked as stale.
This issue has been marked as stale due to 280 days of inactivity. It will be closed in 4 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the dev@druid.apache.org list. Thank you for your contributions.
This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.
Druid 0.12.1 Following documentation in: http://druid.io/docs/latest/development/extensions-core/datasketches-quantiles.html
Query:
Returns
500
with body:Full exception on broker:
The extension is indeed loaded. If i remove the postAgg entry, the query executes (with the quantilesDoublesSketch aggregation).
Is something broken with the post aggregator of quantiles sketch?
What is even more confusing is if i remove the line
"field": "value",
from the postAgg declaration, I get this error msg in response:So it seems druid does know about the post aggregator.
This is very confusing....