Assertion `0' failed at item_cmpfunc.cc:5899: Item* Item_equal::get_first(JOIN_TAB*, Item*) with semijoin+materialization on EXPLAIN
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MariaDB |
Fix Released
|
Undecided
|
Sergey Petrunia |
Bug Description
#8 0xb747c014 in __assert_fail () from /lib/libc.so.6
#9 0x0824b839 in Item_equal:
#10 0x08205fe4 in Item_field:
at item.cc:5038
#11 0x081fbd55 in Item::transform (this=0x945e2c0, transformer=
arg=0xae8f3fc0 "8\357F\
#12 0x0836c6de in substitute_
table_
#13 0x08353862 in JOIN::optimize (this=0x9476628) at sql_select.cc:1271
#14 0x08358dc0 in mysql_select (thd=0x93edad0, rref_pointer_
conds=
unit=0x93ef240, select_
#15 0x083838e1 in mysql_explain_union (thd=0x93edad0, unit=0x93ef240, result=0x946d888) at sql_select.cc:21381
#16 0x082ebf1a in execute_
#17 0x082e3474 in mysql_execute_
#18 0x082ee6d3 in mysql_parse (thd=0x93edad0,
rawbuf=
at sql_parse.cc:6149
#19 0x082e10d6 in dispatch_command (command=COM_QUERY, thd=0x93edad0, packet=0x9447361 "", packet_length=175)
at sql_parse.cc:1227
#20 0x082e0580 in do_command (thd=0x93edad0) at sql_parse.cc:922
#21 0x082dd545 in handle_
#22 0xb770ab25 in start_thread () from /lib/libpthread
bzr version-info
revision-id: <email address hidden>
date: 2012-01-25 22:05:20 +0400
build-date: 2012-01-26 23:04:21 +0400
revno: 3395
branch-nick: maria-5.3
Also reproducible on revno 3390, but isn't reproducible on 3389.
Minimal switch: semijoin=
Full switch: index_merge=
Test case:
SET optimizer_switch = 'semijoin=
CREATE TABLE t1 ( a VARCHAR(3) );
CREATE TABLE t2 ( b VARCHAR(3), c VARCHAR(8), KEY(c) );
INSERT INTO t2 VALUES ('USA',
EXPLAIN
SELECT * FROM
( SELECT * FROM t1 ) AS alias1,
t2 AS alias2
WHERE b = a AND a IN (
SELECT alias3.c
FROM t2 AS alias3, t2 AS alias4
WHERE alias4.c = alias3.b
);
summary: |
Assertion `0' failed at item_cmpfunc.cc:5899: Item* - Item_equal::get_first(JOIN_TAB*, Item*) + Item_equal::get_first(JOIN_TAB*, Item*) with semijoin+materialization on + EXPLAIN |
Changed in maria: | |
status: | New → Fix Committed |
Changed in maria: | |
status: | Fix Committed → Fix Released |
There were 5 assertion failures (non-simplified variations of the test case) during the test run.