Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Pig >> mail # user >> max integer allowed?


Copy link to this message
-
RE: max integer allowed?
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