hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Jeltema <brian.jelt...@digitalenvoy.net>
Subject Re: DECIMAL precision is too small
Date Sat, 28 Jun 2014 14:08:54 GMT
Hive doesn’t support a BigDecimal data type, as far as I know. It supports a Decimal type
that
is based on BigDecimal, but the precision is limited to 38 digits.

However, I found a way to work around the limitation, so it’s no longer an issue for me.

Brian

On Jun 28, 2014, at 8:22 AM, sumit ghosh <sumitkg@yahoo.com> wrote:

> Did you try BigDecimal? It is the same datatype as Java BigDecimal.
> 
> 
> On Thursday, 26 June 2014 8:34 AM, Brian Jeltema <brian.jeltema@digitalenvoy.net>
wrote:
> 
> 
> Sorry, I meant 128 bit
> 
> On Jun 26, 2014, at 11:31 AM, Brian Jeltema <brian.jeltema@digitalenvoy.net> wrote:
> 
> > I need to represent an unsigned 64-bit value as a Hive DECIMAL. The current precision
maximum is 38,
> > which isn’t large enough to represent the high-end of this value. Is there an
alternative?
> > 
> > Brian
> > 
> 
> 


Mime
View raw message