Skip to content

Commit

Permalink
Revert "fix: the calculated columns explicit type convert into date (#…
Browse files Browse the repository at this point in the history
…14813)"

This reverts commit 6bdbd2b.
  • Loading branch information
john-bodley authored and John Bodley committed Oct 26, 2021
1 parent 792efef commit d47b34c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions superset/connectors/sqla/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,7 @@ def dttm_sql_literal(
],
) -> str:
"""Convert datetime object to a SQL expression string"""
dttm_type = self.type or ("DATETIME" if self.is_dttm else None)
sql = self.db_engine_spec.convert_dttm(dttm_type, dttm) if dttm_type else None
sql = self.db_engine_spec.convert_dttm(self.type, dttm) if self.type else None

if sql:
return sql
Expand Down

0 comments on commit d47b34c

Please sign in to comment.