Pig internally uses java integer to store integer value, so Integer.MAX_VALUE 
should be max value you can put for an integer in the script. 

As a side note, Pig has long type as well.

--Xuefu

-----Original Message-----
From: souri datta [mailto:[email protected]] 
Sent: Monday, March 28, 2011 3:56 AM
To: [email protected]
Subject: max integer allowed?

Hi All,
Could not find any proper documentation for it.Can someone please let me know 
what is the maximum integer supported in Pig scripts? (something like
Integer.MAX_VALUE)

Will it be version dependent?
 I found this link
http://db.apache.org/derby/docs/10.1/ref/rrefsqlj30435.html
and used this max. value in a pig script and it worked.But want to confirm.

Thanks,
Souri

Reply via email to