phoenix-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lavrenty Eskin <>
Subject Numbers low-level format in Phoenix
Date Thu, 08 Jan 2015 08:44:07 GMT
Helo all,
I'm surprised that phoenix store numbers not in HBase 'Byte' format. Looks like a big overhead
there, isn't it?
Just takes 1234567890 value (0х499602D2):
Phoenix stores that as string '\x00\x00\x00\x00I\x96\x02\xD2'
But why it cannot store as in HBase format value=[B@499602d2 ?

Another issue is why it write wrong bytes if you write from HBase shell? :
Bytes.toBytes(1234567890)       -->>    value=[B@13217cf6,
Bytes.toBytes(1234567890L)      -->>    value=[B@3caab4f

The information transmitted herein is intended only for the person or entity to which it is
addressed and may contain confidential, proprietary and/or privileged material. Any review,
retransmission, dissemination or other use of, or taking of any action in reliance upon, this
information by persons or entities other than the intended recipient is prohibited. If you
received this in error, please contact the sender and delete the material from any computer.

View raw message