|
Thanks a lot!
Reproducible on 10.4 with optimizer_switch='rowid_filter=on':
--source include/have_innodb.inc
|
set optimizer_switch='rowid_filter=on';
|
create table t1(id int, s text, key (id), fulltext key (s)) engine=innodb;
|
|
insert into t1 values (1119,'t'),(1134,'t'),(1134,'t'),(1143,'t'),(1143,'t'),(1187,'t'),(1187,'t'),(1187,'t'),(1187,'t'),(1187,'t'),(1187,'t'),(1187,'t'),(1187,'t'),(1187,'t'),(1187,'t'),(1210,'t'),(1210,'t'),(1210,'t'),(1210,'t'),(1210,'t'),(1210,'t'),(1214,'t'),(1214,'t'),(1215,'t'),(1215,'t'),(1215,'t'),(1216,'t'),(1218,'t'),(1220,'t'),(1220,'t'),(1220,'t'),(1222,'t'),(1223,'t'),(1223,'t'),(1224,'t'),(1225,'t'),(1225,'t'),(1226,'t'),(1226,'t'),(1227,'t'),(1227,'t'),(1228,'t'),(1229,'t'),(1230,'t'),(1230,'t'),(1231,'t'),(1231,'t'),(1232,'t'),(1232,'t'),(1232,'t'),(1232,'t'),(1233,'t'),(1241,'t'),(1245,'t'),(1247,'t'),(1247,'t'),(1247,'t'),(1247,'t'),(1247,'t'),(1247,'t'),(1248,'like fttest');
|
|
select count(0) from t1
|
where id=15066 and (match s against ('+"fttest"' in boolean mode));
|
MariaDB [test1]> explain extended
|
-> select count(0) from t1
|
-> where id=15066 and (match s against ('+"fttest"' in boolean mode));
|
+------+-------------+-------+-----------------+---------------+------+---------+------+--------+----------+---------------------------------+
|
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | filtered | Extra |
|
+------+-------------+-------+-----------------+---------------+------+---------+------+--------+----------+---------------------------------+
|
| 1 | SIMPLE | t1 | fulltext|filter | id,s | s|id | 0|5 | | 1 (2%) | 1.64 | Using where; Using rowid filter |
|
+------+-------------+-------+-----------------+---------------+------+---------+------+--------+----------+---------------------------------+
|
1 row in set, 1 warning (0.000 sec)
|
|
|
10.4 e980cf91cd01313edb659b128
|
mysqld: /10.4/storage/innobase/include/rem0rec.h:665: ulint rec_offs_nth_flag(const ulint*, ulint, ulint): Assertion `n < rec_offs_n_fields(offsets)' failed.
|
190910 19:51:08 [ERROR] mysqld got signal 6 ;
|
|
Server version: 10.4.8-MariaDB-debug-log
|
|
assert/assert.c:92(__assert_fail_base)[0x7f00247e8bd7]
|
/lib/x86_64-linux-gnu/libc.so.6(+0x2dc82)[0x7f00247e8c82]
|
include/rem0rec.h:665(rec_offs_nth_flag(unsigned long const*, unsigned long, unsigned long))[0x563396aa844f]
|
include/rem0rec.h:708(rec_offs_nth_extern(unsigned long const*, unsigned long))[0x563396aa862d]
|
row/row0sel.cc:2908(row_sel_store_mysql_field(unsigned char*, row_prebuilt_t*, unsigned char const*, dict_index_t const*, unsigned long const*, unsigned long, mysql_row_templ_t const*))[0x563396c4963b]
|
row/row0sel.cc:3921(row_search_idx_cond_check(unsigned char*, row_prebuilt_t*, unsigned char const*, unsigned long const*))[0x563396c4c2b8]
|
row/row0sel.cc:5257(row_search_mvcc(unsigned char*, page_cur_mode_t, row_prebuilt_t*, unsigned long, unsigned long))[0x563396c506cd]
|
include/row0sel.ic:138(row_search_for_mysql(unsigned char*, page_cur_mode_t, row_prebuilt_t*, unsigned long, unsigned long))[0x563396a423ee]
|
handler/ha_innodb.cc:10091(ha_innobase::ft_read(unsigned char*))[0x563396a575a1]
|
sql/sql_class.h:6557(handler::ha_ft_read(unsigned char*))[0x5633963e63bc]
|
sql/sql_select.cc:21231(join_ft_read_first(st_join_table*))[0x5633963cd5ab]
|
sql/sql_select.cc:20154(sub_select(JOIN*, st_join_table*, bool))[0x5633963ca825]
|
sql/sql_select.cc:19695(do_select(JOIN*, Procedure*))[0x5633963c9cf7]
|
sql/sql_select.cc:4391(JOIN::exec_inner())[0x56339639eaa1]
|
sql/sql_select.cc:4174(JOIN::exec())[0x56339639dbd0]
|
sql/sql_select.cc:4607(mysql_select(THD*, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*))[0x56339639f2f3]
|
sql/sql_select.cc:425(handle_select(THD*, LEX*, select_result*, unsigned long))[0x56339638f0ab]
|
sql/sql_parse.cc:6357(execute_sqlcom_select(THD*, TABLE_LIST*))[0x563396355123]
|
sql/sql_parse.cc:3899(mysql_execute_command(THD*))[0x56339634a6d4]
|
sql/sql_parse.cc:7909(mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool))[0x5633963592b1]
|
sql/sql_parse.cc:1845(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool))[0x563396344278]
|
sql/sql_parse.cc:1360(do_command(THD*))[0x563396342896]
|
sql/sql_connect.cc:1412(do_handle_one_connection(CONNECT*))[0x5633964cd39d]
|
sql/sql_connect.cc:1317(handle_one_connection)[0x5633964cd0c6]
|
perfschema/pfs.cc:1864(pfs_spawn_thread)[0x563396f0453f]
|
/lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba)[0x7f0025cdf6ba]
|
x86_64/clone.S:111(clone)[0x7f00248c241d]
|
|
Query (0x7effd4013118): select count(0) from t1 where id=15066 and (match s against ('+"fttest"' in boolean mode))
|
on non-debug:
|
190910 20:27:26 [ERROR] mysqld got signal 11 ;
|
Server version: 10.4.8-MariaDB-log
|
row/row0sel.cc:2864(row_sel_field_store_in_mysql_format_func(unsigned char*, mysql_row_templ_t const*, unsigned char const*, unsigned long))[0x560f2a8d2a97]
|
row/row0sel.cc:3011(row_sel_store_mysql_field(unsigned char*, row_prebuilt_t*, unsigned char const*, dict_index_t const*, unsigned long const*, unsigned long, mysql_row_templ_t const*))[0x560f2a2fe30c]
|
row/row0sel.cc:3921(row_search_idx_cond_check(unsigned char*, row_prebuilt_t*, unsigned char const*, unsigned long const*))[0x560f2a2fe5ae]
|
row/row0sel.cc:5257(row_search_mvcc(unsigned char*, page_cur_mode_t, row_prebuilt_t*, unsigned long, unsigned long))[0x560f2a8d460e]
|
handler/ha_innodb.cc:10093(ha_innobase::ft_read(unsigned char*))[0x560f2a8046e4]
|
sql/sql_class.h:6558(handler::ha_ft_read(unsigned char*))[0x560f2a419066]
|
sql/sql_select.cc:20155(sub_select(JOIN*, st_join_table*, bool))[0x560f2a40f34d]
|
sql/sql_select.cc:19696(do_select)[0x560f2a42f169]
|
sql/sql_select.cc:4174(JOIN::exec())[0x560f2a42f3c4]
|
sql/sql_select.cc:4607(mysql_select(THD*, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*))[0x560f2a42d730]
|
sql/sql_select.cc:425(handle_select(THD*, LEX*, select_result*, unsigned long))[0x560f2a42e09e]
|
sql/sql_parse.cc:6359(execute_sqlcom_select(THD*, TABLE_LIST*) [clone .constprop.288])[0x560f2a2f0dd7]
|
sql/sql_parse.cc:3899(mysql_execute_command(THD*))[0x560f2a3ddc9a]
|
sql/sql_parse.cc:7909(mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool))[0x560f2a3df3f9]
|
sql/sql_parse.cc:1907(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool))[0x560f2a3e133c]
|
sql/sql_parse.cc:1360(do_command(THD*))[0x560f2a3e2ff9]
|
sql/sql_connect.cc:1412(do_handle_one_connection(CONNECT*))[0x560f2a4b23d4]
|
sql/sql_connect.cc:1318(handle_one_connection)[0x560f2a4b2484]
|
perfschema/pfs.cc:1865(pfs_spawn_thread)[0x560f2aa534d4]
|
/lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba)[0x7f4cc23206ba]
|
x86_64/clone.S:111(clone)[0x7f4cc0f0341d]
|
|