Skip to content

Commit

Permalink
Revert "Allow bigint to be used as time column in Presto" apache#7670
Browse files Browse the repository at this point in the history
  • Loading branch information
John Bodley committed Jun 8, 2019
1 parent 95291fa commit 375bc76
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions superset/db_engine_specs/presto.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,6 @@ def convert_dttm(cls, target_type, dttm):
return "from_iso8601_date('{}')".format(dttm.isoformat()[:10])
if tt == 'TIMESTAMP':
return "from_iso8601_timestamp('{}')".format(dttm.isoformat())
if tt == 'BIGINT':
return "to_unixtime(from_iso8601_timestamp('{}'))".format(dttm.isoformat())
return "'{}'".format(dttm.strftime('%Y-%m-%d %H:%M:%S'))

@classmethod
Expand Down

0 comments on commit 375bc76

Please sign in to comment.