Re: about int types of phoenix

2016-05-30 Thread 金砖
Thanks for you explanation William, now I understand. Really appreciated! 在 2016年05月31日 09:41, William 写道: Hi, 金砖 For signed data types, phoenix will flip the first bit to guarantee the expected sort order for binary comparison. For example: 100, its binary: 0x00 00 00 64 -100, its

Re:Re: about int types of phoenix

2016-05-30 Thread William
Hi, 金砖 For signed data types, phoenix will flip the first bit to guarantee the expected sort order for binary comparison. For example: 100, its binary: 0x00 00 00 64 -100, its binary: 0xFF FF FF 9C As we all know, 100 is greater than -100, but their sort order by binary comparison is

about int types of phoenix

2016-05-30 Thread 金砖
hi, ALL: Recently I'm importing existing hbase table to phoenix and I found out phoenix toBytes method(org.apache.phoenix.schema.types.PInteger.toBytes) is different to hbase(org.apache.hadoop.hbase.util.Bytes.toBytes). And document says only support hbase positive values. Why not just