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

Santhosh Srinivasan commented on PIG-532:
-----------------------------------------

I am reviewing this patch

> Casting a field removes its alias.
> ----------------------------------
>
>                 Key: PIG-532
>                 URL: https://issues.apache.org/jira/browse/PIG-532
>             Project: Pig
>          Issue Type: Bug
>          Components: impl
>    Affects Versions: types_branch
>            Reporter: Alan Gates
>            Assignee: Thejas M Nair
>            Priority: Minor
>             Fix For: types_branch
>
>         Attachments: 532.patch
>
>
> Given a script like:
> {code}
> a = loader 'myfile' as (x, y);
> b = foreach a generate (int)x, (double)y;
> c = group a by x;
> {code}
> you will get an error that x is an unknown alias.  The cast operator is not 
> carrying through the alias.  It should.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to