The CROSS operator processes the cross-result of at least two relations.
The Apache Pig CROSS operator works with to process the cross result of at least two relations. Utilizing CROSS operator is a costly activity and ought to be utilized sparingly.
Given below is the syntax of the CROSS operator.
grunt> Relation3_name = CROSS Relation1_name, Relation2_name;
grunt> cross_data = CROSS customers, orders;