quantilesDoubleSketchToHistogram splitpoint issue

I want to create a histogram using quantilesDoubleSketchToHistogram in druid-0.16. The issue is in previous version I used AproxHistogramFold to build the histogram, in which we have to provide numBuckets. numBuckets is Number of output buckets for the resulting histogram. But in newer versions we have to provide splitpoints . Is there any way that I can use numBuckets in newer version say 0.16.

There is no such feature in the quantiles sketch aggregator at the moment. Perhaps, it should be added. What split points would you expect to have based on the number of buckets? Something like equally-spaced from minimum value to maximum value of your distribution?

Would this work for you? https://github.com/apache/druid/pull/9436