diff --git a/superset/connectors/sqla/models.py b/superset/connectors/sqla/models.py index 245da8a45e9da..1ffae8585cc11 100644 --- a/superset/connectors/sqla/models.py +++ b/superset/connectors/sqla/models.py @@ -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(