Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
d083c249
Commit
d083c249
authored
Jul 29, 2017
by
Sergei Petrunia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make rocksdb.bloomfilter_skip pass.
parent
a95ace49
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
14 deletions
+18
-14
storage/rocksdb/mysql-test/rocksdb/r/bloomfilter_skip.result
storage/rocksdb/mysql-test/rocksdb/r/bloomfilter_skip.result
+12
-8
storage/rocksdb/mysql-test/rocksdb/t/bloomfilter.inc
storage/rocksdb/mysql-test/rocksdb/t/bloomfilter.inc
+6
-6
No files found.
storage/rocksdb/mysql-test/rocksdb/r/bloomfilter_skip.result
View file @
d083c249
...
...
@@ -823,7 +823,7 @@ index id2_id4 (id2, id4) COMMENT 'rev:cf_short_prefix',
index id2_id3_id1_id4 (id2, id3, id1, id4) COMMENT 'rev:cf_short_prefix',
index id3_id2 (id3, id2) COMMENT 'rev:cf_short_prefix'
) engine=ROCKSDB;
create table t2 (
create
or replace
table t2 (
id1 bigint not null,
id2 bigint not null,
id3 varchar(100) not null,
...
...
@@ -839,6 +839,10 @@ index id2_id4_id5 (id2, id4, id5) COMMENT 'rev:cf_short_prefix',
index id3_id4 (id3, id4) COMMENT 'rev:cf_short_prefix',
index id3_id5 (id3, id5) COMMENT 'rev:cf_short_prefix'
) engine=ROCKSDB;
insert t1
select (seq+9) div 10, (seq+4) div 5, (seq+4) div 5, seq, seq, 1000, "aaabbbccc"
from seq_1_to_10000;
insert t2 select * from t1;
call bloom_start();
select count(*) from t1;
count(*)
...
...
@@ -1203,9 +1207,7 @@ count(*)
call bloom_end();
checked
false
drop table if exists t1;
drop table if exists t2;
create table t1 (
create or replace table t1 (
id1 bigint not null,
id2 bigint not null,
id3 varchar(100) not null,
...
...
@@ -1237,6 +1239,10 @@ index id2_id4_id5 (id2, id4, id5) COMMENT 'cf_long_prefix',
index id3_id4 (id3, id4) COMMENT 'cf_long_prefix',
index id3_id5 (id3, id5) COMMENT 'cf_long_prefix'
) engine=ROCKSDB;
insert t1
select (seq+9) div 10, (seq+4) div 5, (seq+4) div 5, seq, seq, 1000, "aaabbbccc"
from seq_1_to_10000;
insert t2 select * from t1;
call bloom_start();
select count(*) from t1;
count(*)
...
...
@@ -1601,9 +1607,7 @@ count(*)
call bloom_end();
checked
false
drop table if exists t1;
drop table if exists t2;
create table t1 (
create or replace table t1 (
id1 bigint not null,
id2 bigint not null,
id3 varchar(100) not null,
...
...
@@ -1619,7 +1623,7 @@ index id2_id4 (id2, id4) COMMENT 'rev:cf_long_prefix',
index id2_id3_id1_id4 (id2, id3, id1, id4) COMMENT 'rev:cf_long_prefix',
index id3_id2 (id3, id2) COMMENT 'rev:cf_long_prefix'
) engine=ROCKSDB;
create table t2 (
create
or replace
table t2 (
id1 bigint not null,
id2 bigint not null,
id3 varchar(100) not null,
...
...
storage/rocksdb/mysql-test/rocksdb/t/bloomfilter.inc
View file @
d083c249
...
...
@@ -23,18 +23,18 @@ DELIMITER ;//
--
source
bloomfilter_table_def
.
inc
--
source
bloomfilter_load_select
.
inc
--
exec
sed
s
/
##CF##/" COMMENT 'rev:cf_short_prefix'"/g $tmpl_ddl > $ddl
--
source
$ddl
--
source
suite
/
rocksdb
/
t
/
bloomfilter_load_select
.
inc
--
let
$CF
=
COMMENT
'rev:cf_short_prefix'
--
source
bloomfilter_table_def
.
inc
--
source
bloomfilter_load_select
.
inc
#BF is most of the time invoked and useful
--
let
$CF
=
COMMENT
'cf_long_prefix'
--
source
bloomfilter_table_def
.
inc
--
source
bloomfilter_load_select
.
inc
--
exec
sed
s
/
##CF##/" COMMENT 'rev:cf_long_prefix'"/g $tmpl_ddl > $ddl
--
source
$ddl
--
source
suite
/
rocksdb
/
t
/
bloomfilter_load_select
.
inc
--
let
$CF
=
COMMENT
'rev:cf_long_prefix'
--
source
bloomfilter_table_def
.
inc
--
source
bloomfilter_load_select
.
inc
# BUG: Prev() with prefix lookup should not use prefix bloom filter
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment