[
https://issues.apache.org/jira/browse/PIG-4851?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15214411#comment-15214411
]
Koji Noguchi commented on PIG-4851:
-----------------------------------
Thanks for adding extra test for CSVLoader. Since this is a bug in pig core, I
preferred this test to be in core and not piggybank, but at the same time I
hate copy-and-pasting . Given we perform full tests including piggybank
before the release, I'm fine.
+1 on the patch.
> Null not padded when input has less fields than declared schema for some
> loader
> -------------------------------------------------------------------------------
>
> Key: PIG-4851
> URL: https://issues.apache.org/jira/browse/PIG-4851
> Project: Pig
> Issue Type: Bug
> Affects Versions: 0.12.1, 0.13.0, 0.14.0, 0.15.0
> Reporter: Koji Noguchi
> Assignee: Rohini Palaniswamy
> Attachments: PIG-4851-1.patch, PIG-4851-2-nowhitespacechanges.patch,
> PIG-4851-2.patch, PIG-4851-3-nowhitespacechanges.patch, PIG-4851-3.patch
>
>
> {code:title=test.pig}
> A = load 'input.txt' using org.apache.pig.piggybank.storage.CSVLoader() as
> (field1, field2);
> dump A;
> {code}
> {code:title=input.txt}
> a
> b,
> c,d
> ,e
> f
> {code}
> {code:title=expected output by pig-0.11}
> (a,)
> (b,)
> (c,d)
> (,e)
> (f,)
> {code}
> {code:title=incorrect output by trunk and probably from 0.12}
> (a)
> (b)
> (c,d)
> (,e)
> (f)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)