This is an automated email from the ASF dual-hosted git repository.

beto pushed a commit to branch fix-druid-percent
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 9f97adfb214a425db80f51fa642471174c167181
Author: Beto Dealmeida <[email protected]>
AuthorDate: Mon Apr 29 15:50:38 2024 -0400

    fix: druid double percent
---
 pyproject.toml               | 2 +-
 requirements/development.txt | 2 +-
 superset/models/core.py      | 4 ----
 3 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/pyproject.toml b/pyproject.toml
index 19d2319064..e36e220414 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -119,7 +119,7 @@ databricks = [
 db2 = ["ibm-db-sa>0.3.8, <=0.4.0"]
 dremio = ["sqlalchemy-dremio>=1.1.5, <1.3"]
 drill = ["sqlalchemy-drill>=1.1.4, <2"]
-druid = ["pydruid>=0.6.5,<0.7"]
+druid = ["pydruid>=0.6.7,<0.7"]
 duckdb = ["duckdb-engine>=0.9.5, <0.10"]
 dynamodb = ["pydynamodb>=0.4.2"]
 solr = ["sqlalchemy-solr >= 0.2.0"]
diff --git a/requirements/development.txt b/requirements/development.txt
index 1d4aaea9cd..c28cee8194 100644
--- a/requirements/development.txt
+++ b/requirements/development.txt
@@ -206,7 +206,7 @@ pure-sasl==0.6.2
     #   thrift-sasl
 pydata-google-auth==1.7.0
     # via pandas-gbq
-pydruid==0.6.6
+pydruid==0.6.7
     # via apache-superset
 pyee==11.0.1
     # via playwright
diff --git a/superset/models/core.py b/superset/models/core.py
index 9a4a1de403..33c9558848 100755
--- a/superset/models/core.py
+++ b/superset/models/core.py
@@ -664,10 +664,6 @@ class Database(Model, AuditMixinNullable, 
ImportExportMixin):  # pylint: disable
         with self.get_sqla_engine(catalog=catalog, schema=schema) as engine:
             sql = str(qry.compile(engine, compile_kwargs={"literal_binds": 
True}))
 
-            # pylint: disable=protected-access
-            if engine.dialect.identifier_preparer._double_percents:  # noqa
-                sql = sql.replace("%%", "%")
-
         return sql
 
     def select_star(  # pylint: disable=too-many-arguments

Reply via email to