[ 
https://issues.apache.org/jira/browse/PIG-3384?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Danny D'Amours updated PIG-3384:
--------------------------------

    Attachment: PIG-3384.patch

Patch to fix documentation PIG-3384
                
> Missing negation in UDF doc sample code
> ---------------------------------------
>
>                 Key: PIG-3384
>                 URL: https://issues.apache.org/jira/browse/PIG-3384
>             Project: Pig
>          Issue Type: Bug
>          Components: documentation
>    Affects Versions: 0.11.1
>            Reporter: Danny D'Amours
>            Priority: Trivial
>              Labels: documentation
>             Fix For: 0.11.2
>
>         Attachments: PIG-3384.patch
>
>
> Code sample for UDF has source code for the TOKENIZE function but it is 
> missing a negation compared to the real souce code in the trunk.
> if ((o instanceof String)) {
>   throw new IOException("Expected input to be chararray, but  got " + 
> o.getClass().getName());
> }
> should be
> if (!(o instanceof String)) {
>   throw new IOException("Expected input to be chararray, but  got " + 
> o.getClass().getName());
> }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to