[
https://issues.apache.org/jira/browse/PIG-3384?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Cheolsoo Park updated PIG-3384:
-------------------------------
Resolution: Fixed
Fix Version/s: (was: 0.11.2)
0.12
Status: Resolved (was: Patch Available)
Committed to trunk. Thank you Danny!
> 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
> Assignee: Danny D'Amours
> Priority: Trivial
> Labels: documentation
> Fix For: 0.12
>
> 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