Skip to content

Commit

Permalink
Apply fix to helpers.py.
Browse files Browse the repository at this point in the history
  • Loading branch information
codyml committed Aug 24, 2022
1 parent 617d7b2 commit 0a6e102
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion superset/models/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1515,7 +1515,9 @@ def get_sqla_query( # pylint: disable=too-many-arguments,too-many-locals,too-ma
col=selected, template_processor=template_processor
)
groupby_all_columns[outer.name] = outer
if not series_column_names or outer.name in series_column_names:
if (
is_timeseries and not series_column_names
) or outer.name in series_column_names:
groupby_series_columns[outer.name] = outer
select_exprs.append(outer)
elif columns:
Expand Down

0 comments on commit 0a6e102

Please sign in to comment.