madlib/madlib — pull request #151 by aojwang (2012-05-15 06:45:55+00:00)
Title: Fix for MADLIB-505

array_upper will return null if the input array is null or empty, which will cause the csvstr\_to\_array failure.

The solution is return NULL directly if the input string for the function csv\_to\_array is null or empty after trimmed with ' '.