Skip to content

Commit

Permalink
Bugfix: Druid having filters are broken (#4089)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianmenges authored and mistercrunch committed Dec 19, 2017
1 parent 86f9087 commit ff4f9b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/connectors/druid/models.py
Expand Up @@ -1130,7 +1130,7 @@ def run_query( # noqa / druid
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))
Expand Down

0 comments on commit ff4f9b4

Please sign in to comment.