Re: Can I check if the field is integer or not

2012-06-08 Thread Kris Coward
nteger of one or more digits. > > From: Jagat Singh [jagatsi...@gmail.com] > Sent: Thursday, June 07, 2012 7:08 PM > To: user@pig.apache.org > Subject: Re: Can I check if the field is integer or not > > You can use regular expression > > Field matches '[0-9]' > &g

RE: Can I check if the field is integer or not

2012-06-08 Thread Steve Bernstein
...for a one digit integer, or '[0-9]+' an integer of one or more digits. From: Jagat Singh [jagatsi...@gmail.com] Sent: Thursday, June 07, 2012 7:08 PM To: user@pig.apache.org Subject: Re: Can I check if the field is integer or not You can u

Re: Can I check if the field is integer or not

2012-06-07 Thread Jagat Singh
You can use regular expression Field matches '[0-9]' --- Sent from Mobile , short and crisp. On 08-Jun-2012 3:49 AM, "sonia gehlot" wrote: > Hi Guys, > > Is there is any way in Pig to check either the field is integer or not. > > I have a pig script with a field coming as string and I a

Re: Can I check if the field is integer or not

2012-06-07 Thread sonia gehlot
Great thanks Prashant! On Thu, Jun 7, 2012 at 3:28 PM, Prashant Kommireddi wrote: > Hi Sonia, > > We checked in UDFs for this into trunk, and will be a part of a future > release (0.11). Please take a look at > https://issues.apache.org/jira/browse/PIG-2443 to apply the patch to your > version, o

Re: Can I check if the field is integer or not

2012-06-07 Thread Prashant Kommireddi
Hi Sonia, We checked in UDFs for this into trunk, and will be a part of a future release (0.11). Please take a look at https://issues.apache.org/jira/browse/PIG-2443 to apply the patch to your version, or just to use it externally. In addition, this patch also includes IsFloat, IsLong and IsDoubl