Support Questions
Find answers, ask questions, and share your expertise

Pig - JOIN over a bag?

Pig - JOIN over a bag?

Champion Alumni



I'm having a variable X that has several fields:

  • some of type chararray : A B and C
  • one of type bag : le field D. The bag is composed of tuples with 2 variables {(name:chararray,value:chararray),(name:chararray,value:chararray)...}

I need to join this variable X

  • WITH Y by A field (from X)
  • WITH Z BY each name field from the D tuple (from X)


The join with Y is a classic one;

However, I can't figure out how I can do the join with Z...


Thank you!


Don't have an account?