[ https://issues.apache.org/jira/browse/MADLIB-1161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16175375#comment-16175375 ]
Rahul Iyer commented on MADLIB-1161: ------------------------------------ This error is because the summary table in v1.12 contains the 'null_proxy' entry, which is expected in the predict function. Older versions don't create this entry. The fix is pretty simple: add a default value for 'null_proxy' (= NULL) when not available in summary table. > DT: Trees trained by MADlib < 1.12 fail when predicted on 1.12 > -------------------------------------------------------------- > > Key: MADLIB-1161 > URL: https://issues.apache.org/jira/browse/MADLIB-1161 > Project: Apache MADlib > Issue Type: Bug > Components: Module: Decision Tree > Reporter: Rahul Iyer > Fix For: v2.0 > > > Report from Scott Gai > After upgrade madlib package from 1.11 to 1.12, the tree decision modles > which were trained prior to upgrade started to fail with errors like below > {code} > ERROR: KeyError: 'null_proxy' (plpython.c:4656) CONTEXT: Traceback (most > recent call last): PL/Python function "tree_predict", line 19, in <module> > return decision_tree.tree_predict(**globals()) PL/Python function > "tree_predict", line 1759, in tree_predict PL/Python function "tree_predict" > ********** Error ********** ERROR: KeyError: 'null_proxy' (plpython.c:4656) > SQL state: XX000 Context: Traceback (most recent call last): PL/Python > function "tree_predict", line 19, in <module> return > decision_tree.tree_predict(**globals()) PL/Python function "tree_predict", > line 1759, in tree_predict PL/Python function "tree_predict" > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)