From 2e5c34efd8781601875e3e4705fb2e1aa1fac96f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Vavru=C5=A1a?= Date: Tue, 18 Apr 2017 11:39:58 -0700 Subject: [PATCH] superset/models: respect dialect quoting --- superset/connectors/sqla/models.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/superset/connectors/sqla/models.py b/superset/connectors/sqla/models.py index cd689ae29f66d..6ef5840a594d7 100644 --- a/superset/connectors/sqla/models.py +++ b/superset/connectors/sqla/models.py @@ -632,8 +632,7 @@ def fetch_metadata(self): if not any_date_col and dbcol.is_time: any_date_col = col.name - quoted = "{}".format( - column(dbcol.column_name).compile(dialect=db_dialect)) + quoted = "{}".format(col.compile(dialect=db_dialect)) if dbcol.sum: metrics.append(M( metric_name='sum__' + dbcol.column_name,