Google News
logo
Hadoop - Interview Questions
What are the relational operators in Pig?
The relational operators in Pig are as follows :
 
COGROUP : It joins two or more tables and then performs GROUP operation on the joined table result.
 
CROSS : This is used to compute the cross product (cartesian product) of two or more relations.
 
FOREACH : This will iterate through the tuples of a relation, generating a data transformation.
 
JOIN : This is used to join two or more tables in a relation.
 
LIMIT : This will limit the number of output tuples.
 
SPLIT : This will split the relation into two or more relations.
 
UNION : It will merge the contents of two relations.
 
ORDER : This is used to sort a relation based on one or more fields.
Advertisement