Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Upgrade databricks jdbc driver (#75037)

Riley Thompson5d84f2ea39ca
diff --git a/modules/drivers/databricks/deps.edn b/modules/drivers/databricks/deps.edn
index eac9953ae6a..5cd426aab27 100644
--- a/modules/drivers/databricks/deps.edn
+++ b/modules/drivers/databricks/deps.edn
@@ -3,7 +3,7 @@
:deps
{at.yawk.lz4/lz4-java {:mvn/version "1.10.4"} ; pin newer version because version included in JDBC driver has security warnings
- com.databricks/databricks-jdbc-thin {:mvn/version "3.3.1"
+ com.databricks/databricks-jdbc-thin {:mvn/version "3.4.1"
:exclusions [org.apache.commons/commons-lang3 ;; dep in top-level deps.edn; exclusion fixes security warnings
org.slf4j/slf4j-jdk14]} ;; conflicts with our log4j2 SLF4J provider
;; pin Bouncy Castle explicitly so the bundled driver JAR uses the patched version
diff --git a/modules/drivers/databricks/src/metabase/driver/databricks.clj b/modules/drivers/databricks/src/metabase/driver/databricks.clj
index 2c88ba0bc18..9f350b620dc 100644
--- a/modules/drivers/databricks/src/metabase/driver/databricks.clj
+++ b/modules/drivers/databricks/src/metabase/driver/databricks.clj
@@ -269,17 +269,15 @@
(let [base-spec
{:classname "com.databricks.client.jdbc.Driver"
:subprotocol "databricks"
- ;; Reading through the changelog revealed `EnableArrow=0` solves multiple problems. Including the exception logged
- ;; during first `can-connect?` call. Ref:
- ;; https://databricks-bi-artifacts.s3.us-east-2.amazonaws.com/simbaspark-drivers/jdbc/2.6.40/docs/release-notes.txt
- :subname (str "//" host ":443/;EnableArrow=0"
+ :subname (str "//" host ":443/"
";ConnCatalog=" (codec/url-encode catalog)
(preprocess-additional-options additional-options))
:transportMode "http"
:ssl 1
:HttpPath http-path
:UserAgentEntry (format "Metabase/%s" (:tag driver-api/mb-version-info))
- :UseNativeQuery 1}]
+ :UseNativeQuery 1
+ :UseThriftClient 0}]
(merge base-spec
(when log-level
{:LogLevel log-level})