pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Danny D'Amours (JIRA)" <j...@apache.org>
Subject [jira] [Created] (PIG-3384) Missing negation in UDF doc sample code
Date Thu, 18 Jul 2013 03:30:50 GMT
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

Mime
View raw message