1.

What Does Flatten Do In Pig?

Answer»

Sometimes there is data in a tuple or a bag and if we want to remove the level of NESTING from that data, then Flatten modifier in Pig can be used. Flatten un-nests bags and TUPLES. For tuples, the Flatten operator will substitute the fields of a tuple in place of a tuple, whereas un-nesting bags is a LITTLE COMPLEX because it requires CREATING new tuples.

Sometimes there is data in a tuple or a bag and if we want to remove the level of nesting from that data, then Flatten modifier in Pig can be used. Flatten un-nests bags and tuples. For tuples, the Flatten operator will substitute the fields of a tuple in place of a tuple, whereas un-nesting bags is a little complex because it requires creating new tuples.



Discussion

No Comment Found