Skip to content

Commit f9645d6

Browse files
Small changes to make it work with v0_50
1 parent dee1d7a commit f9645d6

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ COPY . /driver
55
RUN apt-get update && apt-get install -y \
66
curl
77

8-
ARG METABASE_VERSION="v0.49.3"
8+
ARG METABASE_VERSION="v0.50.4"
99

1010
RUN curl -Lo - https://github.com/metabase/metabase/archive/refs/tags/${METABASE_VERSION}.tar.gz | tar -xz && mv metabase-* /metabase
1111

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
ROOT_DIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
3-
METABASE_VERSION=v0.49.3
3+
METABASE_VERSION=v0.50.4
44

55
build:
66
@echo "build"

src/metabase/driver/databricks_sql.clj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
[metabase.driver.sql.query-processor :as sql.qp]
1212
[metabase.driver.sql.util :as sql.u]
1313
[metabase.driver.sql.util.unprepare :as unprepare]
14-
[metabase.mbql.util :as mbql.u]
14+
[metabase.legacy-mbql.util :as mbql.u]
1515
[metabase.query-processor.util :as qp.util]
1616
[java-time :as t]
1717
[metabase.util :as u]
@@ -167,12 +167,12 @@
167167
:native-parameters
168168
:nested-queries
169169
:standard-deviation-aggregations]]
170-
(defmethod driver/supports? [:databricks-sql feature] [_ _] true))
170+
(defmethod driver/database-supports? [:databricks-sql feature] [_ _] true))
171171

172172
;; only define an implementation for `:foreign-keys` if none exists already. In test extensions we define an alternate
173173
;; implementation, and we don't want to stomp over that if it was loaded already
174-
(when-not (get (methods driver/supports?) [:databricks-sql :foreign-keys])
175-
(defmethod driver/supports? [:databricks-sql :foreign-keys] [_ _] true))
174+
(when-not (get (methods driver/database-supports?) [:databricks-sql :foreign-keys])
175+
(defmethod driver/database-supports? [:databricks-sql :foreign-keys] [_ _] true))
176176

177177
(defmethod sql.qp/quote-style :databricks-sql [_] :mysql)
178178

0 commit comments

Comments
 (0)