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

Commit e8fa9ab

Browse files
authored
Merge pull request #3 from CasperCL/fix-datatype-parse-issue
Fix mismatch on datatype parsing
2 parents b80c05f + 82fe139 commit e8fa9ab

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

@@ -38,7 +39,7 @@
3839

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

0 commit comments

Comments
 (0)