From c0640dd863e3904fd536b937c0e0faaaa84965d1 Mon Sep 17 00:00:00 2001 From: datinho Date: Mon, 18 Sep 2017 18:55:41 +0200 Subject: [PATCH] Getting datatype with its dialect (#3486) --- superset/connectors/sqla/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(