This is an automated email from the ASF dual-hosted git repository.

okislal pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/madlib.git


The following commit(s) were added to refs/heads/master by this push:
     new 19b02f5  Fix svm temp table bug by dropping it first
19b02f5 is described below

commit 19b02f5940d71d47530fcf031290d2bb0c5ddc83
Author: Orhan Kislal <[email protected]>
AuthorDate: Fri Jun 14 15:51:17 2019 -0700

    Fix svm temp table bug by dropping it first
    
    Closes #414
---
 src/ports/postgres/modules/svm/svm.py_in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/ports/postgres/modules/svm/svm.py_in 
b/src/ports/postgres/modules/svm/svm.py_in
index 2890ae1..b4f4f45 100644
--- a/src/ports/postgres/modules/svm/svm.py_in
+++ b/src/ports/postgres/modules/svm/svm.py_in
@@ -1087,6 +1087,7 @@ def _svm_parsed_params(schema_madlib, source_table, 
model_table,
     args.update(_svc_or_svr(is_svc, source_table, dependent_varname))
 
     # place holder for compatibility
+    plpy.execute("DROP TABLE IF EXISTS {0}".format(args['rel_args']))
     plpy.execute("CREATE TABLE pg_temp.{0} AS SELECT 
1".format(args['rel_args']))
     # actual iterative algorithm computation
     n_iters_run = _compute_svm(args)

Reply via email to