[
https://issues.apache.org/jira/browse/PIG-2606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13751679#comment-13751679
]
Hari Sankar Sivarama Subramaniyan commented on PIG-2606:
--------------------------------------------------------
There are 2 possible fixes:
1. Improve the error message and say that Pig does not allow this for
operations like UNION, JOIN.
2. Add a Split operator to split the alias and connect the Union node to
Splitoutput.
I will add the patch which implements option 1. Option 2 might be added in
future depending on whether users actually encounter this scenario.
- Hari
> union is 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.9.2, 0.10.0
> 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
--
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