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

New logical plan: FieldSchema generation for BinCond is wrong

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.8.0
    • 0.8.0
    • impl
    • None
    • Reviewed

    Description

      New logical plan generate incomplete schema for BinCond, if the expression for BinCond is of complex type. Eg,

      a = load '1.txt' as (a0, a1:int);
      b = group a by a0;
      c = foreach b generate FLATTEN((IsEmpty(a)?{(65535)}:sequence.FIRST(a.a1)));
      

      The right schema for c is (int), however, in current code, we get null schema. This is because BinCond should get the schema

      {(int)}

      , but we get empty bag {}.

      Attachments

        1. PIG-1719-0.patch
          0.7 kB
          Daniel Dai
        2. PIG-1719-1.patch
          2 kB
          Daniel Dai

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: