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
HBase >> mail # user >> HBase thrift API - Mutation store a float in a column


Copy link to this message
-
RE: HBase thrift API - Mutation store a float in a column
The initial value is 12.0, the resulting is always =\x00\x00\x00\x00

Even if I put something bigger or smaller.

-----Original Message-----
From: manoj p [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 03, 2013 3:31 PM
To: [EMAIL PROTECTED]
Subject: Re: HBase thrift API - Mutation store a float in a column

HBase stores values as byte arrays. When a float value is converted to byte, there is a possibility of data truncation.

I guess the precision loss that happens due to data truncation might be the reason for getting the same value 0 repeatedly.

BR/Manoj
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