You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2019/05/08 03:54:38 UTC

[GitHub] [incubator-druid] pzhdfy commented on issue #7607: thetaSketch(with sketches-core-0.13.1) in groupBy always return value no more than 16384

pzhdfy commented on issue #7607: thetaSketch(with sketches-core-0.13.1) in groupBy always return value no more than 16384
URL: https://github.com/apache/incubator-druid/issues/7607#issuecomment-490337462
 
 
   1.use the newest Druid version( compiled from master branch, with sketches-core-0.13.1)
   2.use this python generate test data
   `import json
   f=open('test_theta_data','w')
   d={}
   for i in xrange(100000):
     #date_id,user_id
     d['date_id']='20190407'
     d['user_id']=i
     f.write('%s\n' % json.dumps(d))`
   3.use this Ingestion spec
   `{
     "dimensions": [
       "date_id"
     ], 
     "aggregations": [
       {
         "type": "thetaSketch", 
         "fieldName": "user_id", 
         "name": "count_distinct__user_id", 
       }
     ], 
     "intervals": "2019-04-07/2019-04-08", 
     "limitSpec": {
       "limit": 5000, 
       "type": "default", 
       "columns": [
         {
           "direction": "descending", 
           "dimension": "count_distinct__user_id"
         }
       ]
     }, 
    
   
     "granularity": "all",  
     "queryType": "groupBy", 
     "dataSource": "test_theta"
   }
   
   
   {
     "dimension": "date_id", 
     "aggregations": [
       {
         "type": "thetaSketch", 
         "fieldName": "user_id", 
         "name": "count_distinct__user_id"
       }
     ], 
     "intervals": "2019-04-07/2019-04-08", 
    "metric": "count_distinct__user_id", 
    "threshold": 5000, 
     "granularity": "all",  
     "queryType": "topN", 
     "dataSource": "test_theta"
   }`

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org