diff --git a/superset/utils.py b/superset/utils.py index 69b1249e8c89f..b2a724cf8dc38 100644 --- a/superset/utils.py +++ b/superset/utils.py @@ -419,7 +419,7 @@ def __exit__(self, type, value, traceback): def wrap_clause_in_parens(sql): """Wrap where/having clause with parenthesis if necessary""" if sql.strip(): - sql = '({})'.format(sql).replace('%', '%%') + sql = '({})'.format(sql) return sa.text(sql)