Skip to content
This repository was archived by the owner on Jun 9, 2025. It is now read-only.

Commit 82fe139

Browse files
author
Casper Eekhof
committed
Fix mismatch on datatype parsing
1 parent b5235c3 commit 82fe139

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/metabase/driver/databricks_sql.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
[metabase.driver.sql.util :as sql.u]
1111
[metabase.driver.sql.util.unprepare :as unprepare]
1212
[metabase.mbql.util :as mbql.u]
13+
[clojure.string :as str]
1314
[metabase.query-processor.util :as qp.util])
1415
(:import [java.sql Connection ResultSet]))
1516

@@ -37,7 +38,7 @@
3738

3839
(defmethod sql-jdbc.sync/database-type->base-type :databricks-sql
3940
[_ database-type]
40-
(condp re-matches (name database-type)
41+
(condp re-matches (str/lower-case (name database-type))
4142
#"boolean" :type/Boolean
4243
#"tinyint" :type/Integer
4344
#"smallint" :type/Integer

0 commit comments

Comments
 (0)