updates sql query / fixes error

This commit is contained in:
Andy Eschbacher 2018-01-09 14:39:24 -05:00
parent b0e3f38f1e
commit 18fbc2fa9e
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ SELECT
inertia, inertia,
rowid rowid
FROM cdb_crankshaft.CDB_KMeansNonspatial( FROM cdb_crankshaft.CDB_KMeansNonspatial(
'select unnest(Array[1, 1, 10, 10]) as col1, unnest(100, 100, 2, 2) as col2 from ppoints', 'SELECT unnest(Array[1, 1, 10, 10]) As col1, unnest(Array[100, 100, 2, 2]) As col2 FROM ppoints',
Array['col1', 'col2']::text[], Array['col1', 'col2']::text[],
2); 2);
cluster_label|cluster_center|silhouettes|inertia|rowid cluster_label|cluster_center|silhouettes|inertia|rowid

View File

@ -26,6 +26,6 @@ SELECT
inertia, inertia,
rowid rowid
FROM cdb_crankshaft.CDB_KMeansNonspatial( FROM cdb_crankshaft.CDB_KMeansNonspatial(
'select unnest(Array[1, 1, 10, 10]) as col1, unnest(100, 100, 2, 2) as col2 from ppoints', 'SELECT unnest(Array[1, 1, 10, 10]) As col1, unnest(Array[100, 100, 2, 2]) As col2 FROM ppoints',
Array['col1', 'col2']::text[], Array['col1', 'col2']::text[],
2); 2);