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

Null not padded when input has less fields than declared schema for some loader

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.12.1, 0.13.0, 0.14.0, 0.15.0
    • 0.16.0, 0.15.1
    • None
    • None
    • Reviewed

    Description

      test.pig
      A = load 'input.txt' using org.apache.pig.piggybank.storage.CSVLoader() as (field1, field2);
      dump  A;
      
      input.txt
      a
      b,
      c,d
      ,e
      f
      
      expected output by pig-0.11
      (a,)
      (b,)
      (c,d)
      (,e)
      (f,)
      
      incorrect output by trunk and probably from 0.12
      (a)
      (b)
      (c,d)
      (,e)
      (f)
      

      Attachments

        1. PIG-4851-1.patch
          107 kB
          Rohini Palaniswamy
        2. PIG-4851-2-nowhitespacechanges.patch
          54 kB
          Rohini Palaniswamy
        3. PIG-4851-2.patch
          110 kB
          Rohini Palaniswamy
        4. PIG-4851-3-nowhitespacechanges.patch
          58 kB
          Rohini Palaniswamy
        5. PIG-4851-3.patch
          125 kB
          Rohini Palaniswamy

        Issue Links

          Activity

            People

              rohini Rohini Palaniswamy
              knoguchi Koji Noguchi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: