Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Clone in Desktop Download ZIP

Loading…

Support index-only scans for type DOUBLE #56

Closed
spetrunia opened this Issue · 0 comments

2 participants

@spetrunia
Collaborator

(branching this off from issue #26)

Currently, index-only scans are not supported for column type DOUBLE.

Testcase:

create table t31 (pk int auto_increment primary key, key1 double, key(key1)) engine=rocksdb;
insert into t31 values (),(),(),(),(),(),(),();
explain select key1 from t31 where key1=1.234;

It is actually possible to restore double from its mem-comparable form and thus support index-only scans.
See filesort.cc: void change_double_for_sort(double nr,uchar *to) for the code that needs to be inverted.

@spetrunia spetrunia was assigned by yoshinorim
@hermanlee hermanlee referenced this issue in facebook/mysql-5.6
Open

Support index-only scans for type DOUBLE #36

@hermanlee hermanlee closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.