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

             Summary: 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
            Reporter: Danny D'Amours
            Priority: Trivial
             Fix For: 0.11.2


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