Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
None
Description
results are different in mysql/mariadb, need check which ones are correct
testcase
drop table if exists t1; |
CREATE TABLE t1 ( |
id INT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY, |
a VARCHAR(200), |
b TEXT
|
) ENGINE = InnoDB STATS_PERSISTENT=0;
|
|
INSERT INTO t1 (a,b) VALUES |
('MySQL Tutorial','DBMS stands for DataBase ...') , |
('How To Use MySQL Well','After you went through a ...'), |
('Optimizing MySQL','In this tutorial we will show ...'); |
|
|
ALTER TABLE t1 ADD FULLTEXT INDEX idx_1 (a); |
ALTER TABLE t1 ADD FULLTEXT INDEX idx_2 (b); |
SHOW CREATE TABLE t1; |
|
START TRANSACTION; |
|
INSERT INTO t1 (a,b) VALUES |
('1001 MySQL Tricks','1. Never run mysqld as root. 2. ...'), |
('MySQL vs. YourSQL','In the following database comparison ...'), |
('MySQL Security','When configured properly, MySQL ...'); |
ROLLBACK; |
|
select *, MATCH(a) AGAINST("Optimizing MySQL" IN BOOLEAN MODE) as x from t1; |
in MariaDb 10.2
MariaDB [test]> select *, MATCH(a) AGAINST("Optimizing MySQL" IN BOOLEAN MODE) as x from t1;
|
+----+-----------------------+-----------------------------------+----------------------------+
|
| id | a | b | x |
|
+----+-----------------------+-----------------------------------+----------------------------+
|
| 1 | MySQL Tutorial | DBMS stands for DataBase ... | 0.000000001885928302414186 |
|
| 2 | How To Use MySQL Well | After you went through a ... | 0.000000001885928302414186 |
|
| 3 | Optimizing MySQL | In this tutorial we will show ... | 0.22764469683170319 |
|
+----+-----------------------+-----------------------------------+----------------------------+
|
3 rows in set (0.00 sec)
|
Mysql 5.7
mysql> select *, MATCH(a) AGAINST("Optimizing MySQL" IN BOOLEAN MODE) as x from t1;
|
+----+-----------------------+-----------------------------------+--------------------+
|
| id | a | b | x |
|
+----+-----------------------+-----------------------------------+--------------------+
|
| 1 | MySQL Tutorial | DBMS stands for DataBase ... | 0.0906190574169159 |
|
| 2 | How To Use MySQL Well | After you went through a ... | 0.0906190574169159 |
|
| 3 | Optimizing MySQL | In this tutorial we will show ... | 0.6961383819580078 |
|
+----+-----------------------+-----------------------------------+--------------------+
|
3 rows in set (0,00 sec)
|
Attachments
Issue Links
- is part of
-
MDEV-13626 Merge InnoDB test cases from MySQL 5.7
-
- Closed
-
- relates to
-
MDEV-14252 innodb_fts.limit_union failed, results mismatch, MATCH .. AGAINST (.. IN BOOLEAN MODE)
-
- Open
-
Activity
Field | Original Value | New Value |
---|---|---|
Priority | Major [ 3 ] | Minor [ 4 ] |
Description |
https://github.com/MariaDB/server/blob/mdev-13626/mysql-test/suite/innodb_fts/t/multiple_index.test
results are different in mysql/mariadb, need check which ones are correct {noformat} innodb_fts.multiple_index 'innodb' [ fail ] Test ended at 2017-10-31 13:24:02 CURRENT_TEST: innodb_fts.multiple_index --- /home/alice/aliska/10.2/mysql-test/suite/innodb_fts/r/multiple_index.result 2017-10-31 13:23:44.235957120 +0100 +++ /home/alice/aliska/10.2/mysql-test/suite/innodb_fts/r/multiple_index.reject 2017-10-31 13:24:02.727933024 +0100 @@ -46,9 +46,9 @@ 1 MySQL Tutorial DBMS stands for DataBase ... select *, MATCH(a) AGAINST("Optimizing MySQL" IN BOOLEAN MODE) as x from t1; id a b x -1 MySQL Tutorial DBMS stands for DataBase ... 0.0906190574169159 -2 How To Use MySQL Well After you went through a ... 0.0906190574169159 -3 Optimizing MySQL In this tutorial we will show ... 0.6961383819580078 +1 MySQL Tutorial DBMS stands for DataBase ... 0.000000001885928302414186 +2 How To Use MySQL Well After you went through a ... 0.000000001885928302414186 +3 Optimizing MySQL In this tutorial we will show ... 0.22764469683170319 select *, MATCH(b) AGAINST("collections support" IN BOOLEAN MODE) as x from t1; id a b x 1 MySQL Tutorial DBMS stands for DataBase ... 0 @@ -90,9 +90,9 @@ 1 MySQL Tutorial DBMS stands for DataBase ... select *, MATCH(a) AGAINST("Optimizing MySQL" IN BOOLEAN MODE) as x from t1; id a b x -1 MySQL Tutorial DBMS stands for DataBase ... 0.0906190574169159 -2 How To Use MySQL Well After you went through a ... 0.0906190574169159 -3 Optimizing MySQL In this tutorial we will show ... 0.6961383819580078 +1 MySQL Tutorial DBMS stands for DataBase ... 0.000000001885928302414186 +2 How To Use MySQL Well After you went through a ... 0.000000001885928302414186 +3 Optimizing MySQL In this tutorial we will show ... 0.22764469683170319 select *, MATCH(b) AGAINST("collections support" IN BOOLEAN MODE) as x from t1; id a b x 1 MySQL Tutorial DBMS stands for DataBase ... 0 mysqltest: Result length mismatch {noformat} |
https://github.com/MariaDB/server/blob/mdev-13626/mysql-test/suite/innodb_fts/t/multiple_index.test
results are different in mysql/mariadb, need check which ones are correct testcase {code:sql} drop table if exists t1; CREATE TABLE t1 ( id INT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY, a VARCHAR(200), b TEXT ) ENGINE = InnoDB STATS_PERSISTENT=0; INSERT INTO t1 (a,b) VALUES ('MySQL Tutorial','DBMS stands for DataBase ...') , ('How To Use MySQL Well','After you went through a ...'), ('Optimizing MySQL','In this tutorial we will show ...'); ALTER TABLE t1 ADD FULLTEXT INDEX idx_1 (a); ALTER TABLE t1 ADD FULLTEXT INDEX idx_2 (b); SHOW CREATE TABLE t1; START TRANSACTION; INSERT INTO t1 (a,b) VALUES ('1001 MySQL Tricks','1. Never run mysqld as root. 2. ...'), ('MySQL vs. YourSQL','In the following database comparison ...'), ('MySQL Security','When configured properly, MySQL ...'); ROLLBACK; select *, MATCH(a) AGAINST("Optimizing MySQL" IN BOOLEAN MODE) as x from t1; {code} in MariaDb 10.2 {noformat} MariaDB [test]> select *, MATCH(a) AGAINST("Optimizing MySQL" IN BOOLEAN MODE) as x from t1; +----+-----------------------+-----------------------------------+----------------------------+ | id | a | b | x | +----+-----------------------+-----------------------------------+----------------------------+ | 1 | MySQL Tutorial | DBMS stands for DataBase ... | 0.000000001885928302414186 | | 2 | How To Use MySQL Well | After you went through a ... | 0.000000001885928302414186 | | 3 | Optimizing MySQL | In this tutorial we will show ... | 0.22764469683170319 | +----+-----------------------+-----------------------------------+----------------------------+ 3 rows in set (0.00 sec) {noformat} Mysql 5.7 {noformat} mysql> select *, MATCH(a) AGAINST("Optimizing MySQL" IN BOOLEAN MODE) as x from t1; +----+-----------------------+-----------------------------------+--------------------+ | id | a | b | x | +----+-----------------------+-----------------------------------+--------------------+ | 1 | MySQL Tutorial | DBMS stands for DataBase ... | 0.0906190574169159 | | 2 | How To Use MySQL Well | After you went through a ... | 0.0906190574169159 | | 3 | Optimizing MySQL | In this tutorial we will show ... | 0.6961383819580078 | +----+-----------------------+-----------------------------------+--------------------+ 3 rows in set (0,00 sec) {noformat} |
Priority | Minor [ 4 ] | Major [ 3 ] |
Summary | innodb_fts.multiple_index failed with results mismatch | MATCH() AGAINST( IN BOOLEAN MODE), results mismatch |
Description |
https://github.com/MariaDB/server/blob/mdev-13626/mysql-test/suite/innodb_fts/t/multiple_index.test
results are different in mysql/mariadb, need check which ones are correct testcase {code:sql} drop table if exists t1; CREATE TABLE t1 ( id INT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY, a VARCHAR(200), b TEXT ) ENGINE = InnoDB STATS_PERSISTENT=0; INSERT INTO t1 (a,b) VALUES ('MySQL Tutorial','DBMS stands for DataBase ...') , ('How To Use MySQL Well','After you went through a ...'), ('Optimizing MySQL','In this tutorial we will show ...'); ALTER TABLE t1 ADD FULLTEXT INDEX idx_1 (a); ALTER TABLE t1 ADD FULLTEXT INDEX idx_2 (b); SHOW CREATE TABLE t1; START TRANSACTION; INSERT INTO t1 (a,b) VALUES ('1001 MySQL Tricks','1. Never run mysqld as root. 2. ...'), ('MySQL vs. YourSQL','In the following database comparison ...'), ('MySQL Security','When configured properly, MySQL ...'); ROLLBACK; select *, MATCH(a) AGAINST("Optimizing MySQL" IN BOOLEAN MODE) as x from t1; {code} in MariaDb 10.2 {noformat} MariaDB [test]> select *, MATCH(a) AGAINST("Optimizing MySQL" IN BOOLEAN MODE) as x from t1; +----+-----------------------+-----------------------------------+----------------------------+ | id | a | b | x | +----+-----------------------+-----------------------------------+----------------------------+ | 1 | MySQL Tutorial | DBMS stands for DataBase ... | 0.000000001885928302414186 | | 2 | How To Use MySQL Well | After you went through a ... | 0.000000001885928302414186 | | 3 | Optimizing MySQL | In this tutorial we will show ... | 0.22764469683170319 | +----+-----------------------+-----------------------------------+----------------------------+ 3 rows in set (0.00 sec) {noformat} Mysql 5.7 {noformat} mysql> select *, MATCH(a) AGAINST("Optimizing MySQL" IN BOOLEAN MODE) as x from t1; +----+-----------------------+-----------------------------------+--------------------+ | id | a | b | x | +----+-----------------------+-----------------------------------+--------------------+ | 1 | MySQL Tutorial | DBMS stands for DataBase ... | 0.0906190574169159 | | 2 | How To Use MySQL Well | After you went through a ... | 0.0906190574169159 | | 3 | Optimizing MySQL | In this tutorial we will show ... | 0.6961383819580078 | +----+-----------------------+-----------------------------------+--------------------+ 3 rows in set (0,00 sec) {noformat} |
https://github.com/MariaDB/server/tree/bb-10.2-alice/mysql-test/suite/innodb_fts/t/multiple_index.test
results are different in mysql/mariadb, need check which ones are correct testcase {code:sql} drop table if exists t1; CREATE TABLE t1 ( id INT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY, a VARCHAR(200), b TEXT ) ENGINE = InnoDB STATS_PERSISTENT=0; INSERT INTO t1 (a,b) VALUES ('MySQL Tutorial','DBMS stands for DataBase ...') , ('How To Use MySQL Well','After you went through a ...'), ('Optimizing MySQL','In this tutorial we will show ...'); ALTER TABLE t1 ADD FULLTEXT INDEX idx_1 (a); ALTER TABLE t1 ADD FULLTEXT INDEX idx_2 (b); SHOW CREATE TABLE t1; START TRANSACTION; INSERT INTO t1 (a,b) VALUES ('1001 MySQL Tricks','1. Never run mysqld as root. 2. ...'), ('MySQL vs. YourSQL','In the following database comparison ...'), ('MySQL Security','When configured properly, MySQL ...'); ROLLBACK; select *, MATCH(a) AGAINST("Optimizing MySQL" IN BOOLEAN MODE) as x from t1; {code} in MariaDb 10.2 {noformat} MariaDB [test]> select *, MATCH(a) AGAINST("Optimizing MySQL" IN BOOLEAN MODE) as x from t1; +----+-----------------------+-----------------------------------+----------------------------+ | id | a | b | x | +----+-----------------------+-----------------------------------+----------------------------+ | 1 | MySQL Tutorial | DBMS stands for DataBase ... | 0.000000001885928302414186 | | 2 | How To Use MySQL Well | After you went through a ... | 0.000000001885928302414186 | | 3 | Optimizing MySQL | In this tutorial we will show ... | 0.22764469683170319 | +----+-----------------------+-----------------------------------+----------------------------+ 3 rows in set (0.00 sec) {noformat} Mysql 5.7 {noformat} mysql> select *, MATCH(a) AGAINST("Optimizing MySQL" IN BOOLEAN MODE) as x from t1; +----+-----------------------+-----------------------------------+--------------------+ | id | a | b | x | +----+-----------------------+-----------------------------------+--------------------+ | 1 | MySQL Tutorial | DBMS stands for DataBase ... | 0.0906190574169159 | | 2 | How To Use MySQL Well | After you went through a ... | 0.0906190574169159 | | 3 | Optimizing MySQL | In this tutorial we will show ... | 0.6961383819580078 | +----+-----------------------+-----------------------------------+--------------------+ 3 rows in set (0,00 sec) {noformat} |
Workflow | MariaDB v3 [ 83372 ] | MariaDB v4 [ 140487 ] |
Fix Version/s | 10.6 [ 24028 ] | |
Fix Version/s | 10.2 [ 14601 ] |
Link | This issue relates to MDEV-14252 [ MDEV-14252 ] |
Component/s | Full-text Search [ 10104 ] | |
Component/s | Storage Engine - InnoDB [ 10129 ] | |
Fix Version/s | 10.4 [ 22408 ] | |
Fix Version/s | 10.5 [ 23123 ] | |
Affects Version/s | 10.3 [ 22126 ] | |
Affects Version/s | 10.4 [ 22408 ] | |
Assignee | Thirunarayanan Balathandayuthapani [ thiru ] |
Parent |
|
|
Affects Version/s | 10.2 [ 14601 ] | |
Affects Version/s | 10.3 [ 22126 ] | |
Affects Version/s | 10.4 [ 22408 ] | |
Issue Type | Technical task [ 7 ] | Task [ 3 ] |
Link |
This issue is part of |
Fix Version/s | 10.5.27 [ 29902 ] | |
Fix Version/s | 10.4 [ 22408 ] | |
Fix Version/s | 10.5 [ 23123 ] | |
Fix Version/s | 10.6 [ 24028 ] | |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
Issue Type | Task [ 3 ] | Bug [ 1 ] |
also in plugin_debug test https://github.com/MariaDB/server/blob/mdev-13626/mysql-test/suite/innodb_fts/t/plugin_debug.test
CURRENT_TEST: innodb_fts.plugin_debug
--- /home/alice/aliska/10.2/mysql-test/suite/innodb_fts/r/plugin_debug.result 2017-11-02 13:01:39.827614000 +0100
+++ /home/alice/aliska/10.2/mysql-test/suite/innodb_fts/r/plugin_debug.reject 2017-11-02 15:33:28.110118532 +0100
@@ -1,4 +1,4 @@
-INSTALL PLUGIN simple_parser SONAME 'mypluglib.so';
+INSTALL PLUGIN simple_parser SONAME 'mypluglib';
# Test Part 2: Create Index Test(CREATE TABLE WITH FULLTEXT INDEX)
CREATE TABLE articles (
id INT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY,
@@ -131,7 +131,6 @@
SELECT * FROM articles WHERE
MATCH(title, body) AGAINST('"mysql database"' IN BOOLEAN MODE);
id title body
-1 MySQL Tutorial DBMS stands for MySQL DataBase ...
DROP TABLE articles;
# Test Part 5: Row Merge Create Index Test with Default/Internal Parser
CREATE TABLE articles (
@@ -173,7 +172,6 @@
SELECT * FROM articles WHERE
MATCH(title, body) AGAINST('"mysql database"' IN BOOLEAN MODE);
id title body
-1 MySQL Tutorial DBMS stands for MySQL DataBase ...
DROP TABLE articles;
# Test Part 6: Test Query Parser with Default/Internal Parser
SET GLOBAL innodb_ft_enable_diag_print = 1;
@@ -232,15 +230,12 @@
SELECT * FROM articles WHERE
MATCH(title, body) AGAINST('"mysql database"' IN BOOLEAN MODE);
id title body
-1 MySQL Tutorial DBMS stands for MySQL DataBase ...
SELECT * FROM articles WHERE
MATCH(title, body) AGAINST('"full text search"' IN BOOLEAN MODE);
id title body
-5 1001 MySQL Tricks How to use full-text search engine
SELECT * FROM articles WHERE
MATCH(title, body) AGAINST('"full text search engine"' IN BOOLEAN MODE);
id title body
-5 1001 MySQL Tricks How to use full-text search engine
SELECT * FROM articles WHERE
MATCH(title, body) AGAINST('+"dbms stands" -good' IN BOOLEAN MODE);
id title body
@@ -257,7 +252,6 @@
SELECT * FROM articles WHERE
MATCH(title, body) AGAINST('+("dbms stands" "full text") -good' IN BOOLEAN MODE);
id title body
-5 1001 MySQL Tricks How to use full-text search engine
1 MySQL Tutorial DBMS stands for MySQL DataBase ...
SELECT * FROM articles WHERE
MATCH(title, body) AGAINST('("msyql database")@3' IN BOOLEAN MODE);
@@ -298,7 +292,6 @@
SELECT * FROM articles WHERE
MATCH(title, body) AGAINST('"计算机 数据库"' IN BOOLEAN MODE);
id title body
-3 要 想 将 数据 添加 到 数据库 或 访问、处理 计算机 数据库 中 保存 的 数据
DROP TABLE articles;
SET GLOBAL innodb_ft_enable_diag_print = 0;
SET SESSION DEBUG_DBUG="-d,fts_instrument_use_default_parser";