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

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

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.12.1, 0.13.0, 0.14.0, 0.15.0
    • Fix Version/s: 0.16.0, 0.15.1
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      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.patch
          110 kB
          Rohini Palaniswamy
        3. PIG-4851-2-nowhitespacechanges.patch
          54 kB
          Rohini Palaniswamy
        4. PIG-4851-3.patch
          125 kB
          Rohini Palaniswamy
        5. PIG-4851-3-nowhitespacechanges.patch
          58 kB
          Rohini Palaniswamy

        Issue Links

          Activity

            People

            • Assignee:
              rohini Rohini Palaniswamy
              Reporter:
              knoguchi Koji Noguchi

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment