Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
impala support for epoch timestamps (apache#5349)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronbannin authored and timifasubaa committed Jul 25, 2018
1 parent 940c7d8 commit ebc7ce4
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 ebc7ce4

Please sign in to comment.