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

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.13.0
    • Fix Version/s: 0.14.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: