Apache Pig – Foreach Operator
The FOREACH operator is used to generate specified data transformations based on the column data. Syntax Given below is the syntax of FOREACH operator. grunt> Relation_name2 = FOREACH Relatin_name1 GENERATE (required data); Example Assume…