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

LOGenerate generates null schema

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.12.1, 0.13.0
    • impl
    • None
    • 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
          Daniel Dai

        Activity

          People

            daijy Daniel Dai
            daijy Daniel Dai
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: