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

Commit 2517f44

Browse files
author
Henrique Schumann Costa
committed
add lower str to datatype
1 parent 7e464e3 commit 2517f44

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

@@ -40,7 +41,7 @@
4041

4142
(defmethod sql-jdbc.sync/database-type->base-type :databricks-sql
4243
[_ database-type]
43-
(condp re-matches (name database-type)
44+
(condp re-matches (str/lower-case (name database-type))
4445
#"boolean" :type/Boolean
4546
#"tinyint" :type/Integer
4647
#"smallint" :type/Integer

0 commit comments

Comments
 (0)