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

LOGenerate generates null schema

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.12.1, 0.13.0
    • Component/s: impl
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      In PIG-3627, we discover flatten(STRSPLIT) generate null schema.
      Here is the sample:

      a = load 'a' as (line:chararray);
      b = foreach a generate flatten(STRSPLIT(line)) as (i0, i1, i2);
      describe b;
      
      b: {i0: NULL,i1: NULL,i2: NULL}
      

      PIG-3627 fixed the JsonStorage to deal with null schema. In this ticket, we will fix the null schema generation.

        Attachments

        1. PIG-3753-1.patch
          2 kB
          Jianyong Dai

          Activity

            People

            • Assignee:
              daijy Jianyong Dai
              Reporter:
              daijy Jianyong Dai
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: