Skip to content
Snippets Groups Projects
Unverified Commit 88fc9d18 authored by Bas Beelen's avatar Bas Beelen Committed by GitHub
Browse files

Match SparkSQL database-type case insensitive (#27444)


* Match SparkSQL database-type case insensitive

* Use lower-case-en to match SparkSQL database-type

---------

Co-authored-by: default avatarBas Beelen <bas.beelen@channable.com>
Co-authored-by: default avatarlbrdnk <lbrdnk@users.noreply.github.com>
parent 22dd37be
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,7 @@
[metabase.driver.sql.query-processor :as sql.qp]
[metabase.driver.sql.util :as sql.u]
[metabase.driver.sql.util.unprepare :as unprepare]
[metabase.util :as u]
[metabase.util.date-2 :as u.date]
[metabase.util.honey-sql-2 :as h2x])
(:import
......@@ -52,7 +53,7 @@
(defmethod sql-jdbc.sync/database-type->base-type :hive-like
[_ database-type]
(condp re-matches (name database-type)
(condp re-matches (u/lower-case-en (name database-type))
#"boolean" :type/Boolean
#"tinyint" :type/Integer
#"smallint" :type/Integer
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment