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

Samples Syntax Error in Pig UDF Manual

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 0.2.0, 0.3.0
    • 0.8.0
    • documentation
    • None
    • Windows XP, firefox 3.5.2

    Description

      All samples with 'extends EvalFunc' have syntax errors in http://hadoop.apache.org/pig/docs/r0.3.0/udf.html .
      There shouldn't be parentheses; they are angle brackets.

      For example in "How to Write a Simple Eval Function" section:

      public class UPPER extends EvalFunc (String)

      should be

      public class UPPER extends EvalFunc<String>

      Attachments

        Activity

          People

            chandec Corinne Chandel
            ywchen Yiwei Chen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: