From 2544a4a8accf29edb7bb45ffd1c9fc97ddc7ad40 Mon Sep 17 00:00:00 2001 From: CodeingBoy Date: Thu, 11 Nov 2021 17:16:55 +0800 Subject: [PATCH] fix(sqllab): Bugfix for tracking url transformation (#17263) * Bugfix for tracking url transformation * Fix linting --- superset/db_engine_specs/hive.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/superset/db_engine_specs/hive.py b/superset/db_engine_specs/hive.py index a695b11b62be1..bbfcbd1bb39f1 100644 --- a/superset/db_engine_specs/hive.py +++ b/superset/db_engine_specs/hive.py @@ -363,7 +363,8 @@ def handle_cursor( # pylint: disable=too-many-locals str(query_id), tracking_url, ) - tracking_url = current_app.config["TRACKING_URL_TRANSFORMER"] + transformer = current_app.config["TRACKING_URL_TRANSFORMER"] + tracking_url = transformer(tracking_url) logger.info( "Query %s: Transformation applied: %s", str(query_id),