Please go through the below explanation :
Full Outer Join
Full outer joins in RDD is same as full outer join in SQL.
- FULL JOIN returns all matching records from both tables whether the other table matches or not.
- FULL JOIN can potentially return very large datasets.
- FULL JOIN and FULL OUTER JOIN are the same.
Also Please go through the below link it had detailed explanation for the full joins.
Group and Co-group
The GROUP and COGROUP operators are identical but GROUP is used in statements involving one relation and COGROUP is used in statements involving two or more relations.
Suppose we have one relation A like below
A = load 'student' AS (name:chararray,age:int,gpa:float);
B = GROUP A BY age;
Now we are using Cogroup
Suppose we have two relations, A and B like below
A = LOAD 'data1' AS (owner:chararray,pet:chararray);
B = LOAD 'data2' AS (friend1:chararray,friend2:chararray);
X = COGROUP A BY owner, B BY friend2;
In the above example, the first bag is the tuples from the first relation with the matching key field. The second bag is the tuples from the second relation with the matching key field. If no tuples match the key field, the bag is empty.