You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@madlib.apache.org by ok...@apache.org on 2017/02/02 18:12:11 UTC

incubator-madlib git commit: Kmeans: Adds svec as an accepted column type for expr_point

Repository: incubator-madlib
Updated Branches:
  refs/heads/master afb0e2365 -> 153037a2f


Kmeans: Adds svec as an accepted column type for expr_point


Project: http://git-wip-us.apache.org/repos/asf/incubator-madlib/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-madlib/commit/153037a2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-madlib/tree/153037a2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-madlib/diff/153037a2

Branch: refs/heads/master
Commit: 153037a2f6a9b2a174dc15fb16fc5da220ae481d
Parents: afb0e23
Author: Orhan Kislal <ok...@pivotal.io>
Authored: Thu Feb 2 10:09:40 2017 -0800
Committer: Orhan Kislal <ok...@pivotal.io>
Committed: Thu Feb 2 10:09:40 2017 -0800

----------------------------------------------------------------------
 src/ports/postgres/modules/kmeans/kmeans.py_in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-madlib/blob/153037a2/src/ports/postgres/modules/kmeans/kmeans.py_in
----------------------------------------------------------------------
diff --git a/src/ports/postgres/modules/kmeans/kmeans.py_in b/src/ports/postgres/modules/kmeans/kmeans.py_in
index da75d78..640ff16 100644
--- a/src/ports/postgres/modules/kmeans/kmeans.py_in
+++ b/src/ports/postgres/modules/kmeans/kmeans.py_in
@@ -51,7 +51,7 @@ def kmeans_validate_expr(schema_madlib, rel_source, expr_point, **kwargs):
     # Both formats should return a numeric array type
     if expr_type in ['smallint[]', 'integer[]', 'bigint[]', 'decimal[]',
                         'numeric[]', 'real[]', 'double precision[]',
-                        'serial[]', 'bigserial[]', 'float8[]']:
+                        'serial[]', 'bigserial[]', 'float8[]', 'svec']:
 
         # An array expression should fail this check
         if columns_exist_in_table(rel_source, [expr_point]):