Is there a way to pass ThetaSketches as a constant, to do some postAggregations

I know that we can get the theta sketches out from druid using the below option.

“context”: {

“finalize”: false

}

But Is there a way to pass ThetaSketches as a constant, to do some operation in postAggregations??

Any updates on this ??

Also any pointers on how to add this feature would be great if this feature is not available.

Hi Senthil,

As far as I know, it’s not possible. If you want to add it, one way to do it would be to add a ConstantSketchPostAggregator to the io.druid.query.aggregation.datasketches.theta package. Check out ConstantPostAggregator for an example of how a constant post-aggregator would work.