This repository was archived by the owner on Jun 9, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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]]
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 )))
Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments