Commit 922f0649 authored by Edward J. Stembler's avatar Edward J. Stembler

Changed spec name

parent eb25124f
......@@ -17,11 +17,11 @@
(throw (RuntimeException. "subname is nil")))
;; Define the connection specification
(def mdl-spec {:classname ""
(def hive-spec {:classname ""}
:subprotocol "hive2"
:subname subname
:user user
:password password})
:password password)
;; Define the SQL statement to execute
(def sql ["SELECT
......@@ -36,4 +36,4 @@
(defn -main
[& args]
(log/info "Executing SQL:\n" (first sql))
(println (jdbc/query mdl-spec sql {:row-fn :row_count :result-set-fn first})))
(println (jdbc/query hive-spec sql {:row-fn :row_count :result-set-fn first})))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment