[
https://issues.apache.org/jira/browse/PIG-5350?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Koji Noguchi resolved PIG-5350.
-------------------------------
Resolution: Duplicate
Thanks for the example [~Izya_aka_MOHCTP]!
I was able to confirm that this issue was only fixed in trunk and not even in
0.17.0.
It was fixed as part of PIG-5312. Patch was for Union-onschema but it also
touched regular Union code path.
Closing the jira as duplicate.
> Union of two sets with the same schema ends up with uid set to -1
> -----------------------------------------------------------------
>
> Key: PIG-5350
> URL: https://issues.apache.org/jira/browse/PIG-5350
> Project: Pig
> Issue Type: Bug
> Environment: Pig 15
> Reporter: Igor Yagolnitser
> Priority: Major
>
> LOAD a ...
> LOAD b ...
> c = UNION a, b;
> d = FOREACH c {
> e = FILTER d ...
> GENERATE filed1, field2, FLATTEN(e.field3);
> }
> I get an error: ERROR org.apache.pig.tools.grunt.Grunt - ERROR 2271: Logical
> plan invalid state: invalid uid -1 in schema :
> field_foo#-1:tuple(field_bar#-1:double,...
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)