1.

What Is The Usage Of Foreach Operation In Pig Scripts?

Answer»

FOREACH operation in Apache Pig is used to apply transformation to each ELEMENT in the data BAG, so that RESPECTIVE action is performed to generate new data ITEMS.

Syntax- FOREACH data_bagname GENERATE exp1, exp2.

FOREACH operation in Apache Pig is used to apply transformation to each element in the data bag, so that respective action is performed to generate new data items.

Syntax- FOREACH data_bagname GENERATE exp1, exp2.



Discussion

No Comment Found