From 1f1bdcea9445b75e275747d4d7e8ac8f663b1ead Mon Sep 17 00:00:00 2001
From: Simon Belak <simon.belak@gmail.com>
Date: Wed, 9 Aug 2017 18:38:18 +0200
Subject: [PATCH] explicitly cast to double array

---
 src/metabase/fingerprinting/stl.clj | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/metabase/fingerprinting/stl.clj b/src/metabase/fingerprinting/stl.clj
index 5900ddc2957..e878587c2d0 100644
--- a/src/metabase/fingerprinting/stl.clj
+++ b/src/metabase/fingerprinting/stl.clj
@@ -30,9 +30,9 @@
                     ([] (.getConfig decomposer))
                     ([_]
                      (let [^StlResult decomposition (.decompose
-                                                     ^StlDecomposition decomposer
-                                                     xs
-                                                     (preprocess ys))]
+                                                     decomposer
+                                                     (double-array xs)
+                                                     (double-array (preprocess ys)))]
                        {:trend    (postprocess (.getTrend decomposition))
                         :seasonal (postprocess (.getSeasonal decomposition))
                         :residual (postprocess (.getRemainder decomposition))
-- 
GitLab