Skip to content
Snippets Groups Projects
Commit 8f5cdd67 authored by Simon Belak's avatar Simon Belak
Browse files

(temp) fix for clobs

parent a89c46fc
No related branches found
No related tags found
No related merge requests found
......@@ -169,7 +169,7 @@
(defn- histogram->dataset
([field histogram] (histogram->dataset identity field histogram))
([keyfn field histogram]
{:rows (let [norm (/ (h.impl/total-count histogram))]
{:rows (let [norm (safe-divide (h.impl/total-count histogram))]
(for [[k v] (equidistant-bins histogram)]
[(keyfn k) (* v norm)]))
:columns [(:name field) "SHARE"]
......@@ -379,7 +379,9 @@
(defmethod fingerprinter Text
[_ field]
(redux/post-complete
(redux/fuse {:histogram (redux/pre-step h/histogram (stats/somef count))})
(redux/fuse {:histogram (redux/pre-step
h/histogram
(stats/somef (comp count u/jdbc-clob->str)))})
(fn [{:keys [histogram]}]
(let [nil-count (h/nil-count histogram)
total-count (h/total-count histogram)]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment