| What are the 3 main complex data types in Pig?
Below are the 3 main complex data types of Pig:-
(1)Tuple:-Weel tuple is an ordered set of fields which can contain different data types for each field. And it is represented by braces ().
Example:-(1,3)
(2)Bag:-Well a bag is a set of tuples represented by curly braces{}.
Example:-{(1,4),(3,5),(4,6)}
(3)Map:-Well a map is a set of key-value pairs which is sued to represent data elements. And it is represented in square brackets [].
example:- [key#value,key1#value1,...] | | |