You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by el...@apache.org on 2024/04/16 22:31:42 UTC
(superset) 02/03: Update superset/models/helpers.py
This is an automated email from the ASF dual-hosted git repository.
elizabeth pushed a commit to branch elizabeth/add-helpers-tests
in repository https://gitbox.apache.org/repos/asf/superset.git
commit ceb54d36969c58ce0c8bfc5d7aca188e4d6a86e5
Author: Elizabeth Thompson <es...@gmail.com>
AuthorDate: Wed Nov 15 16:38:52 2023 -0800
Update superset/models/helpers.py
Co-authored-by: John Bodley <45...@users.noreply.github.com>
---
superset/models/helpers.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/superset/models/helpers.py b/superset/models/helpers.py
index 507e5f3a6b..5c5d89b2c6 100644
--- a/superset/models/helpers.py
+++ b/superset/models/helpers.py
@@ -884,9 +884,9 @@ class ExploreMixin: # pylint: disable=too-many-public-methods
"""Apply config's SQL_QUERY_MUTATOR
Typically adds comments to the query with context"""
- if (sql_query_mutator := config.get("SQL_QUERY_MUTATOR")) and not config.get(
+ if (sql_query_mutator := config["SQL_QUERY_MUTATOR"]) and not config[
"MUTATE_AFTER_SPLIT"
- ):
+ ]:
sql = sql_query_mutator(
sql,
security_manager=security_manager,