[ 
https://issues.apache.org/jira/browse/PIG-2315?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Koji Noguchi updated PIG-2315:
------------------------------
    Attachment: pig-2315-2-after-rebase.patch

bq. I believe we need to drop the types from userdefinedschema for the original 
foreach since the inserted foreach-typecast handles that part.

Attaching a patch that does this.  This patch {{pig-2315-2-after-rebase.patch}} 
applies after {{PIG-2315-1-rebase.patch}}.

It contains 
* Taking away unnecessary comment I've left from original rebase patch.
* Adding type check that would verify that the original foreach has the right 
schema (ignoring the userdefined ones). 
* Two more test cases showing how this bug can produce incorrect results.

> Make as clause work in generate
> -------------------------------
>
>                 Key: PIG-2315
>                 URL: https://issues.apache.org/jira/browse/PIG-2315
>             Project: Pig
>          Issue Type: Bug
>            Reporter: Olga Natkovich
>            Assignee: Daniel Dai
>             Fix For: 0.17.0
>
>         Attachments: PIG-2315-1-rebase.patch, PIG-2315-1.patch, 
> PIG-2315-1.patch, pig-2315-2-after-rebase.patch
>
>
> Currently, the following syntax is supported and ignored causing confusing 
> with users:
> A1 = foreach A1 generate a as a:chararray ;
> After this statement a just retains its previous type



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to