forked from apache/madlib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DL: Fix predict with 'NULL' string class values
JIRA: MADLIB-1357 Fix handling of 'NULL' string for class values in predict. 'NULL' string as a class value was getting reported the same way as a Postgres NULL class value (i.e., empty). This commit double-quotes a 'NULL' string class value in the relevant query. NOTE: In predict, if we use 'prob' as the pred_type, we create a column for each distinct class level. The column name for Postgres NULL class level is 'prob_NULL', and the column name for a 'NULL' string class value will be 'prob_"NULL'. Closes apache#408
- Loading branch information
Showing
1 changed file
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters