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 .


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

1 comment:

  1. Does it work for chararray only as am not able to do this with bytearray

    ReplyDelete