Only call topn when having_filters don't exist (#2075)
This commit is contained in:
parent
e169c67760
commit
0c59fe933d
|
|
@ -2399,7 +2399,7 @@ class DruidDatasource(Model, AuditMixinNullable, Queryable, ImportMixin):
|
|||
if len(groupby) == 0:
|
||||
del qry['dimensions']
|
||||
client.timeseries(**qry)
|
||||
if len(groupby) == 1:
|
||||
if not having_filters and len(groupby) == 1:
|
||||
qry['threshold'] = timeseries_limit or 1000
|
||||
if row_limit and granularity == 'all':
|
||||
qry['threshold'] = row_limit
|
||||
|
|
|
|||
Loading…
Reference in New Issue