Skip to content

Commit

Permalink
Only call topn when having_filters don't exist (#2075)
Browse files Browse the repository at this point in the history
  • Loading branch information
vera-liu committed Jan 31, 2017
1 parent e169c67 commit 0c59fe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2399,7 +2399,7 @@ def recursive_get_fields(_conf):
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
Expand Down

0 comments on commit 0c59fe9

Please sign in to comment.