You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ma...@apache.org on 2018/07/04 23:26:00 UTC
[incubator-superset] branch master updated: impala support for
epoch timestamps (#5349)
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 <aa...@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':