File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
drivers/starburst/src/metabase/driver/implementation Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 11## [ Unreleased]
2+ - Fix an issue where long queries get an error before they complete
23
34## [ 6.0.0] - 2025-01-10
45
Original file line number Diff line number Diff line change 1818 [java-time :as t]
1919 [metabase.driver.implementation.sync :refer [starburst-type->base-type]]
2020 [metabase.driver.implementation.messages :as msg]
21+ [metabase.driver.sql-jdbc.connection :as sql-jdbc.conn]
2122 [metabase.driver.sql-jdbc.execute :as sql-jdbc.execute]
2223 [metabase.driver.sql.parameters.substitution :as sql.params.substitution]
2324 [metabase.query-processor.timezone :as qp.timezone]
7071 (throw e)))
7172 (f conn))))
7273
74+ (defmethod sql-jdbc.conn /data-warehouse-connection-pool-properties :starburst
75+ [driver database]
76+ ; ; In order to avoid Metabase from cancelling long queries, the
77+ ; ; unreturnedConnectionTimeout property needs to be updated
78+ (merge
79+ ((get-method sql-jdbc.conn/data-warehouse-connection-pool-properties :sql-jdbc ) driver database)
80+ {" unreturnedConnectionTimeout" 100000000000 }))
81+
7382; ;; +----------------------------------------------------------------------------------------------------------------+
7483; ;; | Reading Columns from Result Set |
7584; ;; +----------------------------------------------------------------------------------------------------------------+
You can’t perform that action at this time.
0 commit comments