index encode double wrong #3034
Labels
incompatible
PR: incompatible with the recently released version
type/bug
Type: something is unexpected
Milestone
0.0
and-4.9406564584124654e-324
,-0.0
and4.9406564584124654e-324
, encoding string are the same.Detail:
(For simplicity, we use two bytes instead of eight bytes)
Suggestion:
In TiKV and yugabyteDB: negative values have all bits negated while positive values have the high bit turned on.
In MyRocks: Outside of the way above, exponent of positive values gets incremented.But I don’t know the meaning of doing this.
https://github.com/yugabyte/yugabyte-db/blob/d28d82e8c48bb068b538a3ea0e5165525e46838d/src/yb/util/kv_util.h#L67:6
https://github.com/pingcap/tidb/blob/master/util/codec/float.go
https://github.com/facebook/mysql-5.6/wiki/MyRocks-record-format
The text was updated successfully, but these errors were encountered: