Skip to content

Commit

Permalink
[pivot] add support for in Pivot on Druid (#3230)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch authored Aug 3, 2017
1 parent 4ea7700 commit 5278b53
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions superset/connectors/druid/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -817,6 +817,11 @@ def run_query( # noqa / druid
"""
# TODO refactor into using a TBD Query object
client = client or self.cluster.get_pydruid_client()

if DTTM_ALIAS in groupby:
groupby.remove(DTTM_ALIAS)
is_timeseries = True

if not is_timeseries:
granularity = 'all'
inner_from_dttm = inner_from_dttm or from_dttm
Expand Down

0 comments on commit 5278b53

Please sign in to comment.