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

Commit 5160f21

Browse files
author
Henrique Schumann Costa
committed
fix namespace
1 parent e86f47e commit 5160f21

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/metabase/driver/databricks_sql.clj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
(:require [clojure.java.jdbc :as jdbc]
33
[clojure.string :as str]
44
[medley.core :as m]
5-
[metabase.connection-pool :as connection-pool]
65
[metabase.driver :as driver]
76
[metabase.driver.sql-jdbc
87
[common :as sql-jdbc.common]]
@@ -25,7 +24,7 @@
2524
"Create a database specification for a Spark SQL database."
2625
[{:keys [host db jdbc-flags] :as opts}]
2726
(merge
28-
{:classname "metabase.driver.FixedDatabricksDriver"
27+
{:classname "metabase.driver.databricks-sql.FixedDatabricksDriver"
2928
:subprotocol "databricks"
3029
:subname (str "//" host ":443/" db jdbc-flags)}
3130
(dissoc opts :host :db :jdbc-flags)))

src/metabase/driver/FixedDatabricksDriver.clj renamed to src/metabase/driver/databricks_sql/FixedDatabricksDriver.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
(ns metabase.driver.FixedDatabricksDriver
1+
(ns metabase.driver.databricks-sql.FixedDatabricksDriver
22
(:gen-class
33
:extends com.databricks.client.jdbc.Driver
44
:exposes-methods {connect superConnect}
55
:init init
66
:prefix "driver-"
77
:constructors {[] []})
8-
(:require [metabase.driver.connection :as connection]))
8+
(:require [metabase.driver.databricks-sql.connection :as connection]))
99

1010
(defn driver-init
1111
"Initializes the Spark driver"

src/metabase/driver/connection.clj renamed to src/metabase/driver/databricks_sql/connection.clj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
(ns metabase.driver.connection
2-
(:require [clojure.reflect])
1+
(ns metabase.driver.databricks-sql.connection
2+
(:require [clojure.reflect]
3+
[clojure.set])
34
(:import [java.sql ResultSet SQLException]))
45

56
(defmacro decorator

0 commit comments

Comments
 (0)