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

When parsing a schema, pig drops tuple inside of Bag if it contains only one field

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.13.0
    • 0.14.0
    • None
    • None
    • Reviewed

    Description

      Example

      //We generate a schema object and call toString()
      String schemaStr = "my_list: {array: (array_element: (num1: int,num2: int))}";
      // Reparsed using org.apache.pig.impl.util.Utils
      Schema schema = Utils.getSchemaFromString(schemaStr);
      // But no longer matches the original structure
      schema.toString();
      // => {my_list: {array_element: (num1: int,num2: int)}}
      

      Attachments

        1. PIG-4219.patch
          1.0 kB
          Lorand Bendig
        2. PIG-4219-2.patch
          3 kB
          Lorand Bendig

        Issue Links

          Activity

            People

              lbendig Lorand Bendig
              julienledem Julien Le Dem
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: