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

Vivek Padmanabhan commented on PIG-2127:
----------------------------------------

I am seeing the same issue with PigStorage also for Pig 0.10;
Input;
d,e,4,1
a,b,1,2
c,b
d,e,4,1

Script
a = load '2127_withschema' using PigStorage(',') as (f1,f2,f3,f4);
b = foreach a generate f1,f2,f3,f4;
dump b;

The above script also results in the same IndexOutOfBound exception in Pig 
0.10. (works fine with Pig 0.9)


                
> 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