Skip to content

Commit

Permalink
Fixed branching condition with dimension spec (#3920)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mogball authored and mistercrunch committed Nov 28, 2017
1 parent 268edcf commit 6cbe0e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/connectors/druid/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,7 @@ def run_query( # noqa / druid
del qry['dimensions']
qry['metric'] = list(qry['aggregations'].keys())[0]
client.topn(**qry)
elif len(groupby) > 1 or having_filters or not order_desc:
else:
# If grouping on multiple fields or using a having filter
# we have to force a groupby query
if timeseries_limit and is_timeseries:
Expand Down

0 comments on commit 6cbe0e6

Please sign in to comment.