Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.2(EOL)
-
10.2.5-1
Description
It looks similar to MDEV-10554, but not identical.
CREATE TABLE t1 (f1 INT); |
CREATE TABLE t2 (f2 INT); |
CREATE TABLE t3 (f3 INT); |
CREATE VIEW v1 AS ( SELECT f1 AS f FROM t1 ) UNION ( SELECT f2 AS f FROM t2 ); |
CREATE VIEW v2 AS SELECT f3 AS f FROM t3; |
CREATE VIEW v3 AS SELECT f FROM ( SELECT f3 AS f FROM v1, t3 ) AS sq; |
CREATE VIEW v4 AS SELECT COUNT(*) as f FROM v3; |
REPLACE INTO v2 ( SELECT * FROM v4 ) UNION ( SELECT f FROM v2 ); |
mysqld: /data/src/10.2/sql/table.cc:5506: void TABLE_LIST::set_check_materialized(): Assertion `!derived->first_select()->first_inner_unit() || derived->first_select()->first_inner_unit()->first_select()-> exclude_from_table_unique_test' failed.
|
161127 23:39:12 [ERROR] mysqld got signal 6 ;
|
 |
#7 0x00007efe71852312 in __GI___assert_fail (assertion=0x7efe74dc3d00 "!derived->first_select()->first_inner_unit() || derived->first_select()->first_inner_unit()->first_select()-> exclude_from_table_unique_test", file=0x7efe74dc292a "/data/src/10.2/sql/table.cc", line=5506, function=0x7efe74dc5360 <TABLE_LIST::set_check_materialized()::__PRETTY_FUNCTION__> "void TABLE_LIST::set_check_materialized()") at assert.c:101
|
#8 0x00007efe744281da in TABLE_LIST::set_check_materialized (this=0x7efe68d18088) at /data/src/10.2/sql/table.cc:5504
|
#9 0x00007efe742c47d2 in TABLE_LIST::set_materialized_derived (this=0x7efe68d18088) at /data/src/10.2/sql/table.h:2293
|
#10 0x00007efe742b3a0d in find_dup_table (thd=0x7efe68c16070, table=0x7efe68c67678, table_list=0x7efe68c67678, check_alias=false) at /data/src/10.2/sql/sql_base.cc:1051
|
#11 0x00007efe742b3b29 in unique_table (thd=0x7efe68c16070, table=0x7efe68c67678, table_list=0x7efe68c67678, check_alias=false) at /data/src/10.2/sql/sql_base.cc:1095
|
#12 0x00007efe743071b9 in select_insert::prepare (this=0x7efe68d27d58, values=..., u=0x7efe68c19b48) at /data/src/10.2/sql/sql_insert.cc:3597
|
#13 0x00007efe74364880 in JOIN::prepare (this=0x7efe68e69880, tables_init=0x7efe68c19b98, wild_num=0, conds_init=0x0, og_num=0, order_init=0x0, skip_order_by=false, group_init=0x0, having_init=0x0, proc_param_init=0x0, select_lex_arg=0x7efe68c652d8, unit_arg=0x7efe68c19b48) at /data/src/10.2/sql/sql_select.cc:1012
|
#14 0x00007efe7436d2b2 in mysql_select (thd=0x7efe68c16070, tables=0x7efe68c19b98, wild_num=0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=268435456, result=0x7efe68d27d58, unit=0x7efe68c19b48, select_lex=0x7efe68c652d8) at /data/src/10.2/sql/sql_select.cc:3537
|
#15 0x00007efe74408075 in st_select_lex_unit::exec (this=0x7efe68c19b48) at /data/src/10.2/sql/sql_union.cc:1112
|
#16 0x00007efe744044a2 in mysql_union (thd=0x7efe68c16070, lex=0x7efe68c19a80, result=0x7efe68d27d58, unit=0x7efe68c19b48, setup_tables_done_option=1073741824) at /data/src/10.2/sql/sql_union.cc:41
|
#17 0x00007efe743624a1 in handle_select (thd=0x7efe68c16070, lex=0x7efe68c19a80, result=0x7efe68d27d58, setup_tables_done_option=1073741824) at /data/src/10.2/sql/sql_select.cc:351
|
#18 0x00007efe74327acc in mysql_execute_command (thd=0x7efe68c16070) at /data/src/10.2/sql/sql_parse.cc:4435
|
#19 0x00007efe7433288e in mysql_parse (thd=0x7efe68c16070, rawbuf=0x7efe68c64088 "REPLACE INTO v2 ( SELECT * FROM v4 ) UNION ( SELECT f FROM v2 )", length=63, parser_state=0x7efe7544bdd0, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:7799
|
#20 0x00007efe743205de in dispatch_command (command=COM_QUERY, thd=0x7efe68c16070, packet=0x7efe68c58071 "REPLACE INTO v2 ( SELECT * FROM v4 ) UNION ( SELECT f FROM v2 )", packet_length=63, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:1808
|
#21 0x00007efe7431efb8 in do_command (thd=0x7efe68c16070) at /data/src/10.2/sql/sql_parse.cc:1368
|
#22 0x00007efe7446645c in do_handle_one_connection (connect=0x7efe71071410) at /data/src/10.2/sql/sql_connect.cc:1354
|
#23 0x00007efe744661e9 in handle_one_connection (arg=0x7efe71071410) at /data/src/10.2/sql/sql_connect.cc:1260
|
#24 0x00007efe747a0b6a in pfs_spawn_thread (arg=0x7efe7100f9f0) at /data/src/10.2/storage/perfschema/pfs.cc:1862
|
#25 0x00007efe7395f0a4 in start_thread (arg=0x7efe7544d300) at pthread_create.c:309
|
#26 0x00007efe7190c87d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
|
Attachments
Issue Links
- relates to
-
MDEV-10554 Assertion `!derived->first_select()->exclude_from_table_unique_test || derived->outer_select()-> exclude_from_table_unique_test' failed in TABLE_LIST::set_check_merged()
- Closed