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

Should check that any UDF returns a Schema of only one Field

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 0.11, 0.12.0
    • 0.12.0
    • None
    • None

    Description

      Currently, it is "valid" for a UDF's outputSchema to return a Schema of more than one field (ie an int,int,long). This causes weird error (different treatment in the case of one value instead of multiple).

      I will add a check where you can only have one field (multiple fields should be contained in a Tuple).

      This will potentially not be backwards compatible, but it is a bug that people do that.

      Attachments

        Issue Links

          Activity

            People

              jcoveney Jonathan Coveney
              jcoveney Jonathan Coveney
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: