Hi Alex,
thanks for the update but i am still getting the same exception.
Exception in thread "main" java.lang.ClassCastException: clojure.lang.PersistentVector cannot be cast to java.lang.String
at clojurewerkz.cassaforte.client$build_statement.invoke(client.clj:172)
at clojurewerkz.cassaforte.client$execute.doInvoke(client.clj:293)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojurewerkz.cassaforte.multi.cql$insert_batch.invoke(cql.clj:137)
at wm.core.db.access.cassandra$_main$fn__5310.invoke(cassandra.clj:58)
at wm.core.db.access.cassandra$_main.doInvoke(cassandra.clj:57)
at clojure.lang.RestFn.invoke(RestFn.java:397)
at clojure.lang.Var.invoke(Var.java:411)
at user$eval98.invoke(NO_SOURCE_FILE:1)
at clojure.lang.Compiler.eval(Compiler.java:6511)
at clojure.lang.Compiler.eval(Compiler.java:6501)
at clojure.lang.Compiler.eval(Compiler.java:6477)
at clojure.core$eval.invoke(core.clj:2797)
at clojure.main$eval_opt.invoke(main.clj:297)
at clojure.main$initialize.invoke(main.clj:316)
at clojure.main$null_opt.invoke(main.clj:349)
at clojure.main$main.doInvoke(main.clj:427)
at clojure.lang.RestFn.invoke(RestFn.java:421)
at clojure.lang.Var.invoke(Var.java:419)
Here is the test-cast data
(defn get-session
[]
(let[cluster (client/build-cluster {:contact-points localhost :port 9042})
session (client/connect cluster :demo)]
session
)
)
(create-table (get-session) "feed_data"
(column-definitions {:feed_msg_id :bigint
:data :varchar
:key :ascii
:subkey :ascii
:format :ascii
:chg_flag :ascii
:eod :boolean
:status :int
:profile :ascii
:timestamp :timestamp
:primary-key [:feed_msg_id :profile :key :subkey]
}))
(client/prepared
(insert-batch (get-session) :feed_data [{:feed_msg_id (long 11112) :data "ord-val" :key "ord-key" :subkey "lkz" :format "format" :chg_flag "chg-flag" :eod true :status (int 1) :profile "profile-id"}])
)
Regards,
Amir