Skip to content

Commit

Permalink
Getting datatype with its dialect (apache#3486)
Browse files Browse the repository at this point in the history
  • Loading branch information
datinho authored and michellethomas committed May 23, 2018
1 parent f5855db commit c0640dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/connectors/sqla/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ def fetch_metadata(self):
db_dialect = self.database.get_sqla_engine().dialect
for col in table.columns:
try:
datatype = "{}".format(col.type).upper()
datatype = "{}".format(col.type.compile(dialect=db_dialect)).upper()
except Exception as e:
datatype = "UNKNOWN"
logging.error(
Expand Down

0 comments on commit c0640dd

Please sign in to comment.