[
https://issues.apache.org/jira/browse/PIG-4851?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rohini Palaniswamy updated PIG-4851:
------------------------------------
Resolution: Fixed
Hadoop Flags: Reviewed
Fix Version/s: 0.15.1
0.16.0
Status: Resolved (was: Patch Available)
Committed to branch-0.15 and trunk. Thanks [~knoguchi] for identifying all the
different issues and reviewing 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
> Fix For: 0.16.0, 0.15.1
>
> 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)