mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
Bugfix: Druid having filters are broken (#4089)
This commit is contained in:
parent
86f9087ea2
commit
ff4f9b4527
@ -1130,7 +1130,7 @@ class DruidDatasource(Model, BaseDatasource):
|
||||
qry['metric'] = list(qry['aggregations'].keys())[0]
|
||||
client.topn(**qry)
|
||||
logging.info('Phase 2 Complete')
|
||||
elif len(groupby) > 0:
|
||||
elif len(groupby) > 0 or having_filters:
|
||||
# If grouping on multiple fields or using a having filter
|
||||
# we have to force a groupby query
|
||||
logging.info('Running groupby query for dimensions [{}]'.format(dimensions))
|
||||
|
Loading…
Reference in New Issue
Block a user