Assertion `!table || (!table->read_set || bitmap_is_set(table->read_set, field_index))' in Field_long::val_int() with semijoin, merge views, derived_merge=ON, constant table
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MariaDB |
Fix Released
|
Critical
|
Igor Babaev |
Bug Description
mysqld: field.cc:3635: virtual longlong Field_long:
#8 0x006b0d98 in __assert_fail () from /lib/libc.so.6
#9 0x08266044 in Field_long::val_int (this=0xae529848) at field.cc:3635
#10 0x081cf3cc in Item_field::val_int (this=0xae514660) at item.cc:2285
#11 0x081da010 in Item_direct_
#12 0x0820d50e in Arg_comparator:
#13 0x081f2986 in Arg_comparator:
#14 0x0820eee0 in Item_func_
#15 0x0833ecd5 in join_read_
#16 0x08324204 in make_join_
#17 0x0831c930 in JOIN::optimize (this=0xae52f400) at sql_select.cc:1112
#18 0x08322709 in mysql_select (thd=0xaadf6e0, rref_pointer_
order=0x0, group=0x0, having=0x0, proc_param=0x0, select_
at sql_select.cc:2886
#19 0x0831a55f in handle_select (thd=0xaadf6e0, lex=0xaae0de4, result=0xae514b68, setup_tables_
#20 0x082b4d18 in execute_
#21 0x082abad5 in mysql_execute_
#22 0x082b7347 in mysql_parse (thd=0xaadf6e0,
rawbuf=
found_
#23 0x082a9724 in dispatch_command (command=COM_QUERY, thd=0xaadf6e0,
packet=
at sql_parse.cc:1221
#24 0x082a8b7f in do_command (thd=0xaadf6e0) at sql_parse.cc:916
#25 0x082a5b63 in handle_
#26 0x00821919 in start_thread () from /lib/libpthread
#27 0x0076acce in clone () from /lib/libc.so.6
explain also crashes.
minimal switch: semijoin=
full switch: index_merge=
bzr version-info
revision-id: <email address hidden>
date: 2011-10-24 12:54:28 -0700
build-date: 2011-10-25 17:33:06 +0300
revno: 3249
branch-nick: maria-5.3
test case:
CREATE TABLE t1 ( a varchar(1)) ;
INSERT INTO t1 VALUES ('a'),('b');
CREATE TABLE t2 ( a int, PRIMARY KEY (a)) ;
INSERT INTO t2 VALUES (1),(2);
CREATE TABLE t3 ( a int, b varchar(1)) ;
INSERT INTO t3 VALUES (1,'x');
CREATE ALGORITHM=MERGE VIEW v3 AS SELECT * FROM t3;
SET SESSION optimizer_
SELECT * FROM t1
WHERE ( a ) IN (
SELECT v3.b
FROM t2
RIGHT JOIN v3
ON ( v3.a = t2.a )
);
Changed in maria: | |
milestone: | none → 5.3 |
assignee: | nobody → Igor Babaev (igorb-seattle) |
Changed in maria: | |
importance: | Undecided → Critical |
status: | New → Confirmed |
Changed in maria: | |
status: | Confirmed → In Progress |
Changed in maria: | |
status: | In Progress → Fix Committed |
Changed in maria: | |
status: | Fix Committed → Fix Released |