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

Split results missing records when there is null values in the column comparison

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.10.0
    • Fix Version/s: 0.17.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Suppose a(x, y)

      split a into b if x==y, c otherwise;

      One will expect the union of b and c will be a. However, if x or y is null, the record won't appear in either b or c.

      To workaround this, I have to change to the following:
      split a into b if x is not null and y is not null and x==y, c otherwise;

        Attachments

        1. PIG-3021.patch
          9 kB
          Cheolsoo Park
        2. PIG-3021-2.patch
          9 kB
          Cheolsoo Park
        3. PIG-3021-3.patch
          14 kB
          Cheolsoo Park
        4. PIG-3021-4.patch
          13 kB
          Nian Ji

          Activity

            People

            • Assignee:
              jeffjee617 Nian Ji
              Reporter:
              pokerincome Chang Luo
            • Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: