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

Hari Sankar Sivarama Subramaniyan updated PIG-2606:
---------------------------------------------------

    Status: Patch Available  (was: Open)

Added patch to improve the error message.

grunt> a = load 'a0.txt' as (a0, a1);
grunt> b = union a, a;               
2013-08-27 13:51:01,679 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 
1200: Pig script failed to parse: 
<line 2, column 4> pig script failed to validate: Pig does not accept same 
alias as input for UNION operation : a

grunt> b = join a by a0, a by a0; 
2013-08-27 13:51:32,838 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 
1200: Pig script failed to parse: 
<line 2, column 4> pig script failed to validate: Pig does not accept same 
alias as input for JOIN operation : a


                
> union/ join operations are not accepting same alias as multiple inputs
> ----------------------------------------------------------------------
>
>                 Key: PIG-2606
>                 URL: https://issues.apache.org/jira/browse/PIG-2606
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.10.0, 0.9.2
>            Reporter: Thejas M Nair
>            Assignee: Hari Sankar Sivarama Subramaniyan
>
> grunt> l = load 'x';   
> grunt> u = union l, l; 
> 2012-03-16 18:48:45,687 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 
> 2998: Unhandled internal error. Union with Count(Operand) < 2
> grunt> a = load 'a0.txt' as (a0, a1);
> grunt> b = join a by a0, a by a1;    
> 2013-08-27 13:36:21,807 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 
> 2225: Projection with nothing to reference!

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to