Here is my sample bag data and my file name is bag.txt:
{(8,9),(0,1)},{(8,9),(1,1)}
{(2,3),(4,5)},{(2,3),(4,5)}
{(6,7),(3,7)},{(2,2),(3,7)}
Now i want to load this data in my Apache Pig shell when I am loading this data using
A = LOAD '/home/mvsubhash/Desktop/bag.txt' AS (B1:bag{T1:tuple(t1:int,t2:int)},B2:bag{T2:tuple(f1:int,f2:int)});
But my final result is like this
({(8,9),(0,1)},)
({(2,3),(4,5)},)
({(6,7),(3,7)},)
In the above result second bag is not processing.