Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

thetaSketch postaggregation fails #1217

Closed
ratb3rt opened this issue Sep 29, 2016 · 6 comments
Closed

thetaSketch postaggregation fails #1217

ratb3rt opened this issue Sep 29, 2016 · 6 comments

Comments

@ratb3rt
Copy link

ratb3rt commented Sep 29, 2016

I have two thetaSketch metrics which work correctly, but if I add a post-aggregator (which works directly against Druid), I get a 500 error when trying a simple query.
The postaggregator is defined like this:
{ "type":"thetaSketchEstimate", "name":"thetaSketch_intersect", "field": { "type":"thetaSketchSetOp", "name":"thetaSketch_intersect", "func":"INTERSECT", "fields":[ { "type": "fieldAccess", "fieldName": "thetaSketch_one" }, { "type": "fieldAccess", "fieldName": "thetaSketch_two" } ] } }

and the resulting error is:
HTTP Error 500: Internal Server Error Druid Error: Instantiation of [simple type, class io.druid.query.aggregation.post.ArithmeticPostAggregator] value failed: Illegal number of fields[%s], must be > 1 (through reference chain: java.util.ArrayList[0]) Query is: { "dimensions": [], "aggregations": [ { "filter": { "type": "selector", "dimension": "event__name", "value": "value1" }, "aggregator": { "fieldName": "environment__app_instance_id_ts", "type": "thetaSketch", "name": "thetaSketch_one" }, "type": "filtered" }, { "filter": { "type": "selector", "dimension": "event__name", "value": "value2" }, "aggregator": { "fieldName": "environment__app_instance_id_ts", "type": "thetaSketch", "name": "thetaSketch_two" }, "type": "filtered" } ], "intervals": "2016-09-22T13:12:59+00:00/2016-09-29T13:12:59+00:00", "limitSpec": { "limit": 5000, "type": "default", "columns": [ { "direction": "descending", "dimension": "thetaSketch_one" } ] }, "granularity": { "duration": 86400000.0, "type": "duration" }, "postAggregations": [ { "fields": [], "type": "arithmetic", "name": "thetaSketch_intersect", "fn": "/" } ], "queryType": "groupBy", "dataSource": "rule-engine" }

@xrmx
Copy link
Contributor

xrmx commented Sep 29, 2016

This is druid exploding, are you sure your druid postaggregator is correct?

@xrmx xrmx added the question label Sep 29, 2016
@ratb3rt
Copy link
Author

ratb3rt commented Sep 29, 2016

The post-agg is definitely fine - I can post it and get results. I have just discovered that pydruid doesn't support thetaSketch post-aggregators, maybe that's related.

@nanittu
Copy link

nanittu commented Mar 7, 2017

i ran into the same issue when defining a quantile based post aggregate metric.

HTTP Error 500: Internal Server Error Druid Error: Instantiation of [simple type, class io.druid.query.aggregation.post.ArithmeticPostAggregator] value failed: Illegal number of fields[%s], must be > 1 (through reference chain: java.util.ArrayList[0]) Query is: { "queryType": "timeseries", "dataSource": "watchtower", "aggregations": [], "granularity": "all", "postAggregations": [ { "type": "arithmetic", "name": "quantile_99", "fn": "/", "fields": [] } ], "intervals": "2017-02-27T22:57:53+00:00/2017-03-06T22:57:53+00:00" }

Any thoughts ?

@mistercrunch
Copy link
Member

We just added support for Quantile and I don't think it made 0.18.0

@nanittu
Copy link

nanittu commented Mar 8, 2017

@mistercrunch thanks for the update. Any visibility into the roadmap for future releases ?

@mistercrunch
Copy link
Member

Notice: this issue has been closed because it has been inactive for 410 days. Feel free to comment and request for this issue to be reopened.

@dpgaspar dpgaspar mentioned this issue Jan 23, 2020
12 tasks
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 17, 2021
…ng (apache#1217)

* feat(plugin-chart-pivot-table): implement conditional and date formatting

* Use custom icons for expand/collapse

* Fix tests

* Revert changes to ControlForm

* Fix tests

* Rename variable
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 24, 2021
…ng (apache#1217)

* feat(plugin-chart-pivot-table): implement conditional and date formatting

* Use custom icons for expand/collapse

* Fix tests

* Revert changes to ControlForm

* Fix tests

* Rename variable
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 25, 2021
…ng (apache#1217)

* feat(plugin-chart-pivot-table): implement conditional and date formatting

* Use custom icons for expand/collapse

* Fix tests

* Revert changes to ControlForm

* Fix tests

* Rename variable
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 26, 2021
…ng (apache#1217)

* feat(plugin-chart-pivot-table): implement conditional and date formatting

* Use custom icons for expand/collapse

* Fix tests

* Revert changes to ControlForm

* Fix tests

* Rename variable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants