You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Daniel Dai (JIRA)" <ji...@apache.org> on 2011/04/07 07:40:05 UTC

[jira] [Commented] (PIG-1974) Lineage need to set for every cast

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

Daniel Dai commented on PIG-1974:
---------------------------------

The issue is because lineage only set caster if the input data type is bytearray. However, if it is complex data type, we need to cast inner bytearray to real type, we still rely on caster. So we need to set caster as well.

> Lineage need to set for every cast
> ----------------------------------
>
>                 Key: PIG-1974
>                 URL: https://issues.apache.org/jira/browse/PIG-1974
>             Project: Pig
>          Issue Type: Bug
>          Components: impl
>    Affects Versions: 0.9.0
>            Reporter: Daniel Dai
>            Assignee: Thejas M Nair
>             Fix For: 0.9.0
>
>
> The following script does not cast correctly:
> {code}
> a = load '1.txt' as (m:map[]);
> b = foreach a generate (map[chararray])m;
> dump b;
> {code}
> Pig throw warning that it cannot cast (map[chararray]) because caster is null.

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