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

Alan Gates commented on PIG-1758:
---------------------------------

bq. LoadCaster interface provides methods to cast complex types – but they are 
silently ignored by Pig

So before this patch casting of bytearray to tuple or bag fails in 0.8?  That 
is definitely a fix worth back porting.

The addition of deep casting I have a hard time thinking of as a bug since we 
have never it in the past.

Since this is relatively small and did not work in the past I am ok with back 
porting it.  I do think we should add something in the release notes that says 
the feature is experimental.

I have a concern in general about when we back port features and when we do 
not, but I will start a thread on that on the dev list.


> Deep cast of complex type
> -------------------------
>
>                 Key: PIG-1758
>                 URL: https://issues.apache.org/jira/browse/PIG-1758
>             Project: Pig
>          Issue Type: New Feature
>          Components: impl
>    Affects Versions: 0.8.0
>            Reporter: Daniel Dai
>            Assignee: Daniel Dai
>             Fix For: 0.9.0
>
>         Attachments: PIG-1758-1.patch, PIG-1758-2.patch
>
>
> Pig does not handle deep cast from bag -> bag, tuple -> tuple. Eg, the 
> following script does not produce desired result:
> {code}
> a = load '1.txt' as (a0:bag{t:tuple(i0:double)});
> b = foreach a generate (bag{tuple(int)})a0;
> dump b;
> {code}
> The result tuple still contain int inside tuple of bag. 
> PIG-613 fix the case we cast bytearray -> bag/tuple, we take complex type 
> including inner types, but bag->bag, tuple->tuple is still not effective.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to