File 1 has the data:
Name ID
-------
Mark 1
Gary 2
Robert 3
File 2 has the data:
ID result
----------
1 success
2 Fail
3 success
I loaded the data into two variables a
& b
now I want to join the data in based on ID for which result is success. I am able to join but I am getting the data in an improper format.
a = load '/file1' as (Name:chararray,ID:int);
b = load '/file2' as (ID:int,result:chararray);
c = join a by a2, b by b1;
When I dump c I am getting the output in the format of (name,id,id,result)... How I need join a
& b
such that I can get the output in the format of (name,id,result)