Big Data - Apache Pig

Back to Course

Lesson Description

Lession - #466 Apache pig CROSS Operator

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;