Skip to content

Commit

Permalink
Fixed branching condition with dimension spec (apache#3920)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mogball authored and michellethomas committed May 23, 2018
1 parent 0a81715 commit a4da5a3
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 a4da5a3

Please sign in to comment.