How To CONCAT Multiple Expressions In Apache Pig

2014-05-01 Thread unmesha sreeveni
Hi This is a blog for beginners to concat multiple expressoins in Pig scripts. http://www.unmeshasreeveni.blogspot.in/2014/04/how-to-concat-multiple-expressions-in.html Please post your comments for the same Let me know your thoughts. -- *Thanks & Regards * *Unmesha Sreeveni U.B* *Ha

Re: How to CONCAT multiple expressions

2012-07-17 Thread Cdy Chen
Thanks all of you! 2012/7/12 Marek Miglinski > Try MassCONCAT: > http://codeupload.com/4992 > > > Marek Miglinski > > From: Dan Young [danoyo...@gmail.com] > Sent: Thursday, July 12, 2012 5:14 AM > To: user@pig.apache.org &

RE: How to CONCAT multiple expressions

2012-07-12 Thread Marek Miglinski
Try MassCONCAT: http://codeupload.com/4992 Marek Miglinski From: Dan Young [danoyo...@gmail.com] Sent: Thursday, July 12, 2012 5:14 AM To: user@pig.apache.org Subject: Re: How to CONCAT multiple expressions Try org.apache.pig.builtin.StringConcat Dano

Re: How to CONCAT multiple expressions

2012-07-11 Thread Dan Young
Try org.apache.pig.builtin.StringConcat Dano On Tuesday, July 10, 2012, Cdy Chen wrote: > Hi all, > > I am a new comer here. I encounter a problem toady: > > Pig version: 0.10.0 > > temp2 = LOAD '/pig/procedure/tzone' USING PigStorage(';'); > zone = FOREACH temp2 > { >a = STRSPLIT($0,'#',3)

Re: How to CONCAT multiple expressions

2012-07-11 Thread Scott Foster
StringConcat should work: key = StringConcat((chararray)product.$1,(chararray)$7,(chararray)$6); scott. On Tue, Jul 10, 2012 at 6:27 PM, Russell Jurney wrote: > I really need to fix this in pig 0.11 > > Russell Jurney > twitter.com/rjurney > russell.jur...@gmail.com > datasyndrome.com > > On Ju

Re: How to CONCAT multiple expressions

2012-07-10 Thread Russell Jurney
I really need to fix this in pig 0.11 Russell Jurney twitter.com/rjurney russell.jur...@gmail.com datasyndrome.com On Jul 10, 2012, at 5:34 PM, Cdy Chen wrote: > Thank you ! > > I use > > key2 = CONCAT($1,$6); > key = CONCAT(key2,$8); > > It also works! > > Regards, > Chen > > 2012/7/10 Haitao

Re: How to CONCAT multiple expressions

2012-07-10 Thread Cdy Chen
Thank you ! I use key2 = CONCAT($1,$6); key = CONCAT(key2,$8); It also works! Regards, Chen 2012/7/10 Haitao Yao > like this: > > CONCAT(CONCAT('all', ':'), 'all') > > It's ugly , but the concat only accepts 2 parameters. > Here's the java doc of CONCAT class: > /** > * Generates the conc

Re: How to CONCAT multiple expressions

2012-07-10 Thread Haitao Yao
like this: CONCAT(CONCAT('all', ':'), 'all') It's ugly , but the concat only accepts 2 parameters. Here's the java doc of CONCAT class: /** * Generates the concatenation of the first two arguments. It can be * used with two bytearrays or two chararrays (but not a mixture of the two). */