Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 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
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB