Skip to content

Commit

Permalink
Druid hotfix. (#1710)
Browse files Browse the repository at this point in the history
  • Loading branch information
bkyryliuk committed Nov 29, 2016
1 parent 0be02e6 commit 65e9232
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 65e9232

Please sign in to comment.