superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maximebeauche...@apache.org
Subject [incubator-superset] branch master updated: [pivot] add support for in Pivot on Druid (#3230)
Date Thu, 03 Aug 2017 07:04:20 GMT
This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 5278b53  [pivot] add support for  in Pivot on Druid (#3230)
5278b53 is described below

commit 5278b53218187992a089ed734ce90daf9551d44c
Author: Maxime Beauchemin <maximebeauchemin@gmail.com>
AuthorDate: Thu Aug 3 00:04:16 2017 -0700

    [pivot] add support for  in Pivot on Druid (#3230)
---
 superset/connectors/druid/models.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/superset/connectors/druid/models.py b/superset/connectors/druid/models.py
index 6f88dd1..53aeb5a 100644
--- a/superset/connectors/druid/models.py
+++ b/superset/connectors/druid/models.py
@@ -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

-- 
To stop receiving notification emails like this one, please contact
['"commits@superset.apache.org" <commits@superset.apache.org>'].

Mime
View raw message