From cfd988c33897bf77c17bbf0f8526a6b7251c900c Mon Sep 17 00:00:00 2001 From: Andy Eschbacher Date: Tue, 9 Jan 2018 15:14:38 -0500 Subject: [PATCH] uses exact same query text for expectation --- src/pg/test/expected/11_kmeans_test.out | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/pg/test/expected/11_kmeans_test.out b/src/pg/test/expected/11_kmeans_test.out index 5b22f1b..1a0077c 100644 --- a/src/pg/test/expected/11_kmeans_test.out +++ b/src/pg/test/expected/11_kmeans_test.out @@ -20,13 +20,16 @@ clusters 52 (1 row) SELECT - cluster_label, - cluster_center, + cluster_label::int in (0, 1) As cluster_label, + cluster_center::json->>'col1' As cc_col1, + cluster_center::json->>'col2' As cc_col2, silhouettes, inertia, rowid FROM cdb_crankshaft.CDB_KMeansNonspatial( - 'SELECT unnest(Array[1, 1, 10, 10]) As col1, unnest(Array[100, 100, 2, 2]) As col2, unnest(Array[1, 2, 3, 4]) As cartodb_id', + 'SELECT unnest(Array[1, 1, 10, 10]) As col1, ' || + 'unnest(Array[100, 100, 2, 2]) As col2, ' || + 'unnest(Array[1, 2, 3, 4]) As cartodb_id ', Array['col1', 'col2']::text[], 2); cluster_label|cc_col1|cc_col2|silhouettes|inertia|rowid