Tuesday, 8 April 2014

How To CONCAT Multiple Expressions In Apache Pig

Apache Pig is a platform for analyzing large data sets.Instead of writing a complicated MapReduce Job we can simply write Apache Pig Scripts.

Below is an example code to CONCAT multiple values in Apache Pig.CONCAT is able to only concat 2 values.

Using the below code we can concat multiple values .

eg: CONCAT((chararray)$0,CONCAT('Pig',(chararray)$6));