Assertion `bit < (map)->n_bits' failed in maria-5.3 with partial_match_rowid_merge
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MariaDB |
Fix Released
|
Low
|
Timour Katchaounov |
Bug Description
Not repeatable in maria-5.3-mwl89, though the query plan in that tree is different. At the very least, please push the test case into the tree so that it is run automatically.
In maria-5.3 , the following query
SELECT * FROM t2
WHERE ( f3 , f2 ) IN (SELECT f3 , f3 )
OR ( f1 , f3 , f1 ) NOT IN ( SELECT COUNT( DISTINCT f2 ), f1, f3 FROM t1 GROUP BY f1 , f3 );
causes the following assertion:
mysqld: ../include/
1
backtrace:
Ordered_
subselect_
subselect_
Item_subselect:
Item_in_
Item_in_
Item::val_
Item_in_
Item::val_
Item_cache_
Item_cache_
Item_cache_
Item_func_
Item::val_
Item_cond_
) [0x83242db]
JOIN::exec(
mysql_select(THD*, Item***, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_
handle_select(THD*, st_lex*, select_result*, unsigned long)+0x1cd) [0x8303fb1]
) [0x82a1a4f]
mysql_execute_
mysql_parse(THD*, char*, unsigned int, char const**)+0x26f) [0x82a3fe7]
dispatch_
do_command(
handle_
explain in maria-5.3:
id select_type table type possible_keys key key_len ref rows Extra
1 PRIMARY t2 system NULL NULL NULL NULL 1
3 SUBQUERY t1 ALL NULL NULL NULL NULL 100 Using filesort
2 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL No tables used
explain in maria-5.3-mwl89:
id select_type table type possible_keys key key_len ref rows Extra
1 PRIMARY t2 system NULL NULL NULL NULL 1
3 DEPENDENT SUBQUERY t1 ALL NULL NULL NULL NULL 100 Using filesort
2 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL No tables used
test case:
CREATE TABLE t1 ( f1 int NOT NULL , f2 int, f3 int) ;
INSERT IGNORE INTO t1 VALUES ('1','6'
CREATE TABLE t2 ( f1 int NOT NULL , f2 int, f3 int) ;
INSERT IGNORE INTO t2 VALUES ('1000','6','2');
SELECT *
FROM t2
WHERE
( f3 , f2 ) IN (SELECT f3 , f3 )
OR ( f1 , f3 , f1 ) NOT IN (
SELECT
COUNT( DISTINCT f2 ),
f1, f3
FROM t1
GROUP BY f1 , f3
);
description: | updated |
Changed in maria: | |
milestone: | none → 5.3 |
assignee: | nobody → Timour Katchaounov (timour) |
summary: |
- Assertion `bit < (map)->n_bits' failed in maria-5.3 + Assertion `bit < (map)->n_bits' failed in maria-5.3 with + partial_match_rowid_merge |
Changed in maria: | |
status: | New → In Progress |
Changed in maria: | |
importance: | Undecided → Low |
Changed in maria: | |
status: | In Progress → Fix Committed |
Changed in maria: | |
status: | Fix Committed → Fix Released |
see also https:/ /bugs.launchpad .net/maria/ +bug/719198