velimir opened a new issue #10585:
URL: https://github.com/apache/druid/issues/10585


   ### Affected Version
   
   0.20.0
   
   ### Description
   
   Cluster created from the 
[docker-compose](https://github.com/apache/druid/blob/master/distribution/docker/docker-compose.yml).
   Datasource - loaded wikipedia example.
   
   On attempt to get a histogram form a quantiles sketch created from a 
arrayOfDoublesSketch:
   
   ```
   {
       "queryType": "topN",
       "dataSource": "wiki",
       "dimension": "regionIsoCode",
       "threshold": 5,
       "metric": "user_sketch",
       "aggregations": [
           {
               "type": "arrayOfDoublesSketch",
               "name": "user_sketch",
               "fieldName": "user",
               "metricColumns": ["sum_added", "sum_commentLength"],
               "numberOfValues": 2
           }
       ],
       "postAggregations": [
           {
               "type": "arrayOfDoublesSketchToMeans",
               "name": "means",
               "field": {
                   "type": "fieldAccess",
                   "name": "user_sketch",
                   "fieldName": "user_sketch"
               }
           },
           {
               "type" : "quantilesDoublesSketchToHistogram",
               "name": "quantile",
               "field" : {
                   "type": "arrayOfDoublesSketchToQuantilesSketch",
                   "name": "quantiles_sketch",
                   "column": 1,
                   "k": 16384,
                   "field": {
                       "type": "fieldAccess",
                       "name": "user_sketch",
                       "fieldName": "user_sketch"
                   }
               }
           }
       ],
       "granularity": "all",
       "intervals": [
           "2016-01-01/P1Y"
       ]
   }
   ```
   
   Druid responds with:
   
   ```
   {
       "error": "Unknown exception",
       "errorClass": "org.apache.datasketches.SketchesArgumentException",
       "errorMessage": "Values must be unique, monotonically increasing and not 
NaN.",
       "host": "172.19.0.5:8083"
   }
   ```


----------------------------------------------------------------
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]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to