From 547a4adef550c256aa47893190ede4d48ca1f741 Mon Sep 17 00:00:00 2001 From: "Michael S. Molina" <70410625+michael-s-molina@users.noreply.github.com> Date: Mon, 25 Nov 2024 17:42:31 -0300 Subject: [PATCH] fix: Remove unwanted commit on Trino's handle_cursor (#31154) --- superset/db_engine_specs/trino.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/superset/db_engine_specs/trino.py b/superset/db_engine_specs/trino.py index e42358f74..0eaa67f0f 100644 --- a/superset/db_engine_specs/trino.py +++ b/superset/db_engine_specs/trino.py @@ -216,8 +216,6 @@ class TrinoEngineSpec(PrestoBaseEngineSpec): if tracking_url := cls.get_tracking_url(cursor): query.tracking_url = tracking_url - db.session.commit() - # if query cancelation was requested prior to the handle_cursor call, but # the query was still executed, trigger the actual query cancelation now if query.extra.get(QUERY_EARLY_CANCEL_KEY):