Skip to content

Commit

Permalink
superset/models: respect dialect quoting
Browse files Browse the repository at this point in the history
  • Loading branch information
vavrusa authored and RichRadics committed May 3, 2017
1 parent 5c7f2a6 commit 2e5c34e
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 @@ -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,
Expand Down

0 comments on commit 2e5c34e

Please sign in to comment.