From 65e92327abdd0d521a9dcb65319165b163da356c Mon Sep 17 00:00:00 2001 From: Bogdan Date: Tue, 29 Nov 2016 18:11:59 -0500 Subject: [PATCH] Druid hotfix. (#1710) --- superset/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset/models.py b/superset/models.py index bf2e68917ef8b..9364db5a1bce2 100644 --- a/superset/models.py +++ b/superset/models.py @@ -2151,7 +2151,7 @@ def increment_timestamp(ts): tzinfo=config.get("DRUID_TZ")) return dt + timedelta(milliseconds=time_offset) if DTTM_ALIAS in df.columns and time_offset: - df.timestamp = df.timestamp.apply(increment_timestamp) + df[DTTM_ALIAS] = df[DTTM_ALIAS].apply(increment_timestamp) return QueryResult( df=df,