Repository: incubator-madlib
Updated Branches:
  refs/heads/master f50e63cbb -> 41a439f47


DT: Remove unsupported array_ndims check


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

Branch: refs/heads/master
Commit: 41a439f479604048e7384369aa06dad36c50178c
Parents: f50e63c
Author: Rahul Iyer <ri...@apache.org>
Authored: Wed May 17 14:07:49 2017 -0700
Committer: Rahul Iyer <ri...@apache.org>
Committed: Wed May 17 14:07:49 2017 -0700

----------------------------------------------------------------------
 .../modules/recursive_partitioning/decision_tree.py_in         | 6 ------
 1 file changed, 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-madlib/blob/41a439f4/src/ports/postgres/modules/recursive_partitioning/decision_tree.py_in
----------------------------------------------------------------------
diff --git 
a/src/ports/postgres/modules/recursive_partitioning/decision_tree.py_in 
b/src/ports/postgres/modules/recursive_partitioning/decision_tree.py_in
index fac74df..32c484d 100644
--- a/src/ports/postgres/modules/recursive_partitioning/decision_tree.py_in
+++ b/src/ports/postgres/modules/recursive_partitioning/decision_tree.py_in
@@ -141,12 +141,6 @@ def _get_features_to_use(schema_madlib, 
training_table_name,
         feat_type = get_expr_type(feat, training_table_name)
         if '[]' in feat_type:
             # expand array by indexing into it
-            n_dims = plpy.execute("SELECT array_ndims({feat}) as n "
-                                  "FROM {tbl} LIMIT 1".
-                                  format(feat=feat, 
tbl=training_table_name))[0]['n']
-            _assert(n_dims == 1,
-                    "Only single dimensional arrays allowed for features. "
-                    "Invalid dimensions in {0}".format(feat))
             feat_dims = plpy.execute("""
                                         SELECT array_lower({f}, 1) as l,
                                                array_upper({f}, 1) as u

Reply via email to