Apache Pig UNION Operator
The Apache Pig UNION operator is used to compute the union of two or more relations. It doesn't maintain the order of tuples. It also doesn't eliminate the duplicate tuples.
Example of UNION Operator
In this example, we compute the data of two relations.
Steps to execute UNION Operator
Here, we got the desired output.