You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@madlib.apache.org by ri...@apache.org on 2016/07/28 04:07:25 UTC

incubator-madlib git commit: DT: Remove quote_ident due to mismatch in names

Repository: incubator-madlib
Updated Branches:
  refs/heads/master ce55c89b7 -> 628560a61


DT: Remove quote_ident due to mismatch in names


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

Branch: refs/heads/master
Commit: 628560a613d24028b493d3e720793aa254f6fbb5
Parents: ce55c89
Author: Rahul Iyer <ri...@apache.org>
Authored: Wed Jul 27 21:06:46 2016 -0700
Committer: Rahul Iyer <ri...@apache.org>
Committed: Wed Jul 27 21:06:46 2016 -0700

----------------------------------------------------------------------
 .../postgres/modules/recursive_partitioning/decision_tree.py_in  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-madlib/blob/628560a6/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 028bce1..ccba636 100644
--- a/src/ports/postgres/modules/recursive_partitioning/decision_tree.py_in
+++ b/src/ports/postgres/modules/recursive_partitioning/decision_tree.py_in
@@ -818,7 +818,7 @@ def _get_bins(schema_madlib, training_table_name, cat_features,
         sql_all_cats = ' UNION ALL '.join(
             sql_cat_levels.format(col="(CASE WHEN " + col + " THEN 'True' ELSE 'False' END)"
                                   if col in boolean_cats else col,
-                                  col_name=quote_ident(col)) for col in cat_features)
+                                  col_name=col) for col in cat_features)
         all_levels = plpy.execute(sql_all_cats)
 
         if len(all_levels) != len(cat_features):
@@ -1027,7 +1027,7 @@ def _get_bins_grps(
             sql_cat_levels.format(
                 col=("(CASE WHEN " + col + " THEN 'True' ELSE 'False' END)"
                      if col in boolean_cats else col),
-                col_name=quote_ident(col))
+                col_name=col)
             for col in cat_features)
 
         all_levels = list(plpy.execute(sql_all_cats))