[
https://issues.apache.org/jira/browse/PIG-532?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Thejas M Nair updated PIG-532:
------------------------------
Attachment: 532.patch
Patch
QueryParser.jjt - Passing alias information to LOCast
TestLogicalPlanBuilder.java - Added test cases for this patch. Corrected other
test cases that were passing multiple statements at a time to buildPlan().
> 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.