Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Pig - JOIN over a bag?

Pig - JOIN over a bag?

Champion Alumni

Hello,

 

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!

 

GHERMAN Alina
Don't have an account?
Coming from Hortonworks? Activate your account here