Friday, March 10, 2017

What is COGROUP in Pig?

The COGROUP operator works more or less in the same way as the  GROUP operator. The only difference between the two operators is that the group operator is normally used with one relation, while the cogroup operator is used in statements involving two or more relations.

grunt> cogroup_data = COGROUP student_details by age, employee_details by age;

No comments:

Post a Comment