Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-3384

Missing negation in UDF doc sample code

    XMLWordPrintableJSON

Details

    • Patch Available

    Description

      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());
      }

      Attachments

        1. PIG-3384.patch
          0.7 kB
          Danny D'Amours

        Activity

          People

            ddamours Danny D'Amours
            ddamours Danny D'Amours
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: