Skip to content

Commit

Permalink
impala support for epoch timestamps (#5349)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronbannin authored and mistercrunch committed Jul 4, 2018
1 parent ad9103f commit 252cba2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions superset/db_engine_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1425,6 +1425,10 @@ class ImpalaEngineSpec(BaseEngineSpec):
Grain('year', _('year'), "TRUNC({col}, 'YYYY')", 'P1Y'),
)

@classmethod
def epoch_to_dttm(cls):
return 'from_unixtime({col})'

@classmethod
def convert_dttm(cls, target_type, dttm):
tt = target_type.upper()
Expand Down

0 comments on commit 252cba2

Please sign in to comment.