[ https://issues.apache.org/jira/browse/PIG-4038?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Philip (flip) Kromer updated PIG-4038: -------------------------------------- Description: SPRINTF will currently interpolate the string 'null' if supplied with null arguments, which is "helpful but not help-ing". This patch makes it return null if any argument -- format or fodder -- is null. (See PIG-3939 for SPRINTF implementation) was:SPRINTF will currently interpolate the string 'null' if supplied with null arguments, which is "helpful but not help-ing". This patch makes it return null if any argument -- format or fodder -- is null. > SPRINTF should return NULL on any NULL input > -------------------------------------------- > > Key: PIG-4038 > URL: https://issues.apache.org/jira/browse/PIG-4038 > Project: Pig > Issue Type: Bug > Components: internal-udfs > Reporter: Philip (flip) Kromer > Priority: Minor > Labels: null, sprintf, udf > Attachments: > 0001-PIG-4038-SPRINTF-returns-null-on-any-null-argument.patch > > > SPRINTF will currently interpolate the string 'null' if supplied with null > arguments, which is "helpful but not help-ing". This patch makes it return > null if any argument -- format or fodder -- is null. > (See PIG-3939 for SPRINTF implementation) -- This message was sent by Atlassian JIRA (v6.2#6252)