[ 
https://issues.apache.org/jira/browse/PIG-2127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13290533#comment-13290533
 ] 

Prashant Kommireddi commented on PIG-2127:
------------------------------------------

Is this happening with trunk? I can't reproduce this issue

{code}
cat data
1       3       5
4       123     b
5       12      
10

A = LOAD 'data' as (a:int, b:chararray, c:chararray);
Store A INTO 'out' using PigStorage(',', '-schema');

B = load 'out' using PigStorage(',', '-schema');
describe B;
B: {a: int,b: chararray,c: chararray}

dump B;
(1,3,5)
(4,123,b)
(5,12,)
(10,,)
{code}
dump B;
                
> PigStorageSchema need to deal with missing field
> ------------------------------------------------
>
>                 Key: PIG-2127
>                 URL: https://issues.apache.org/jira/browse/PIG-2127
>             Project: Pig
>          Issue Type: Bug
>          Components: impl
>    Affects Versions: 0.10.0
>            Reporter: Daniel Dai
>             Fix For: 0.10.0
>
>
> Currently, if data contains fewer columns than the schema, PigStorageSchema 
> will throw IndexOutOfBound exception (PigStorageSchema:97). We should padding 
> null in this case as we did in PigStorage.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to