[pivot] add support for in Pivot on Druid (#3230)

This commit is contained in:
Maxime Beauchemin 2017-08-03 00:04:16 -07:00 committed by GitHub
parent 4ea770068b
commit 5278b53218

View File

@ -817,6 +817,11 @@ class DruidDatasource(Model, BaseDatasource):
"""
# 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