Search code examples
hadoopapache-pig

What should be the schema for the data mentioned below in pig?


({(b,c),(d,e)})

I tried it with: (t1:tuple(B1:Bag{(a:chararray,b:a:chararray)})); But no luck.


Solution

  • The correct answer is : (t1:tuple(B1:Bag{t2:tuple(t2a:chararray,t2b:chararray)}))