Convex: Remove remove LMF merge temporarily
Jira: MADLIB-756
The current implementation fares poorly on Greenplum instances
with many segments. The problem has been identified with the merge
function, and is temporarily disabled till a fix is found.
diff --git a/src/ports/greenplum/4.0/config/Modules.yml b/src/ports/greenplum/4.0/config/Modules.yml
index 63841d5..d72e1c8 100644
--- a/src/ports/greenplum/4.0/config/Modules.yml
+++ b/src/ports/greenplum/4.0/config/Modules.yml
@@ -25,6 +25,8 @@
depends: ['utilities']
- name: sample
depends: ['utilities']
+ - name: convex
+ depends: ['utilities']
- name: sketch
- name: stats
- name: svd_mf
diff --git a/src/ports/postgres/modules/convex/lmf.sql_in b/src/ports/postgres/modules/convex/lmf.sql_in
index b999bd2..44a66d0 100644
--- a/src/ports/postgres/modules/convex/lmf.sql_in
+++ b/src/ports/postgres/modules/convex/lmf.sql_in
@@ -191,7 +191,7 @@
/*+ scale_factor */ DOUBLE PRECISION) (
STYPE=DOUBLE PRECISION[],
SFUNC=MADLIB_SCHEMA.lmf_igd_transition,
- m4_ifdef(`__GREENPLUM__',`prefunc=MADLIB_SCHEMA.lmf_igd_merge,')
+ -- m4_ifdef(`__GREENPLUM__',`PREFUNC=MADLIB_SCHEMA.lmf_igd_merge,')
FINALFUNC=MADLIB_SCHEMA.lmf_igd_final,
INITCOND='{0,0,0,0,0,0,0,0,0}'
);