mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
[hotfix] groupby may be a set
This commit is contained in:
parent
5882c7e344
commit
3b9f7cb3f1
@ -1951,9 +1951,10 @@ class DruidDatasource(Model, AuditMixinNullable, Queryable):
|
||||
client.timeseries(**qry)
|
||||
if len(groupby) == 1:
|
||||
if not timeseries_limit:
|
||||
timeseries_limit = 10000
|
||||
timeseries_limit = 1000
|
||||
|
||||
qry['threshold'] = timeseries_limit
|
||||
qry['dimension'] = qry.get('dimensions')[0]
|
||||
qry['dimension'] = list(qry.get('dimensions'))[0]
|
||||
del qry['dimensions']
|
||||
qry['metric'] = list(qry['aggregations'].keys())[0]
|
||||
client.topn(**qry)
|
||||
|
Loading…
Reference in New Issue
Block a user