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: impala support for epoch timestamps (#5349)
Date Wed, 04 Jul 2018 23:26:00 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 252cba2  impala support for epoch timestamps (#5349)
252cba2 is described below

commit 252cba20de25407d8eab24b553ca073d34a75a77
Author: aaronbannin <aaron.bannin@parsable.com>
AuthorDate: Wed Jul 4 16:25:58 2018 -0700

    impala support for epoch timestamps (#5349)
---
 superset/db_engine_specs.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/superset/db_engine_specs.py b/superset/db_engine_specs.py
index 0441fe6..0dc6f9b 100644
--- a/superset/db_engine_specs.py
+++ b/superset/db_engine_specs.py
@@ -1426,6 +1426,10 @@ class ImpalaEngineSpec(BaseEngineSpec):
     )
 
     @classmethod
+    def epoch_to_dttm(cls):
+        return 'from_unixtime({col})'
+
+    @classmethod
     def convert_dttm(cls, target_type, dttm):
         tt = target_type.upper()
         if tt == 'DATE':


Mime
View raw message