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
|
- 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
{"report":{"fcp":1003.5,"ttfb":357,"pageVisibility":"visible","entityId":59066,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"cf9799ac-c5e5-443b-9e2d-b1b388a37c1f","navigationType":0,"readyForUser":1095,"redirectCount":0,"resourceLoadedEnd":725.4000000953674,"resourceLoadedStart":368.5,"resourceTiming":[{"duration":17.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":368.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":368.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":386,"responseStart":0,"secureConnectionStart":0},{"duration":17.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":368.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":368.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":386.19999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":213,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":368.90000009536743,"connectEnd":368.90000009536743,"connectStart":368.90000009536743,"domainLookupEnd":368.90000009536743,"domainLookupStart":368.90000009536743,"fetchStart":368.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":392.7999997138977,"responseEnd":581.9000000953674,"responseStart":415.19999980926514,"secureConnectionStart":368.90000009536743},{"duration":343.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":369.09999990463257,"connectEnd":369.09999990463257,"connectStart":369.09999990463257,"domainLookupEnd":369.09999990463257,"domainLookupStart":369.09999990463257,"fetchStart":369.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":393.19999980926514,"responseEnd":712.4000000953674,"responseStart":420.09999990463257,"secureConnectionStart":369.09999990463257},{"duration":51.700000286102295,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":369.2999997138977,"connectEnd":369.2999997138977,"connectStart":369.2999997138977,"domainLookupEnd":369.2999997138977,"domainLookupStart":369.2999997138977,"fetchStart":369.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":393.5,"responseEnd":421,"responseStart":419.59999990463257,"secureConnectionStart":369.2999997138977},{"duration":53.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":369.5,"connectEnd":369.5,"connectStart":369.5,"domainLookupEnd":369.5,"domainLookupStart":369.5,"fetchStart":369.5,"redirectEnd":0,"redirectStart":0,"requestStart":393.59999990463257,"responseEnd":423,"responseStart":421.69999980926514,"secureConnectionStart":369.5},{"duration":56,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":369.69999980926514,"connectEnd":369.69999980926514,"connectStart":369.69999980926514,"domainLookupEnd":369.69999980926514,"domainLookupStart":369.69999980926514,"fetchStart":369.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":394.69999980926514,"responseEnd":425.69999980926514,"responseStart":423.09999990463257,"secureConnectionStart":369.69999980926514},{"duration":20.799999713897705,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":370,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":370,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":390.7999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":55.700000286102295,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":370.2999997138977,"connectEnd":370.2999997138977,"connectStart":370.2999997138977,"domainLookupEnd":370.2999997138977,"domainLookupStart":370.2999997138977,"fetchStart":370.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":394.90000009536743,"responseEnd":426,"responseStart":423.59999990463257,"secureConnectionStart":370.2999997138977},{"duration":21.299999713897705,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":370.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":370.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":391.7999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":55.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":370.59999990463257,"connectEnd":370.59999990463257,"connectStart":370.59999990463257,"domainLookupEnd":370.59999990463257,"domainLookupStart":370.59999990463257,"fetchStart":370.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":395.40000009536743,"responseEnd":426.19999980926514,"responseStart":424.19999980926514,"secureConnectionStart":370.59999990463257},{"duration":348.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":373.90000009536743,"connectEnd":373.90000009536743,"connectStart":373.90000009536743,"domainLookupEnd":373.90000009536743,"domainLookupStart":373.90000009536743,"fetchStart":373.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":419.40000009536743,"responseEnd":722.4000000953674,"responseStart":718.9000000953674,"secureConnectionStart":373.90000009536743},{"duration":351.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":374,"connectEnd":374,"connectStart":374,"domainLookupEnd":374,"domainLookupStart":374,"fetchStart":374,"redirectEnd":0,"redirectStart":0,"requestStart":437.59999990463257,"responseEnd":725.4000000953674,"responseStart":720.2999997138977,"secureConnectionStart":374},{"duration":183.2000002861023,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":756.6999998092651,"connectEnd":756.6999998092651,"connectStart":756.6999998092651,"domainLookupEnd":756.6999998092651,"domainLookupStart":756.6999998092651,"fetchStart":756.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":904.6999998092651,"responseEnd":939.9000000953674,"responseStart":939.1999998092651,"secureConnectionStart":756.6999998092651},{"duration":193.80000019073486,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":996.1999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":996.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1190,"responseStart":0,"secureConnectionStart":0},{"duration":175.59999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1002.4000000953674,"connectEnd":1002.4000000953674,"connectStart":1002.4000000953674,"domainLookupEnd":1002.4000000953674,"domainLookupStart":1002.4000000953674,"fetchStart":1002.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":1146,"responseEnd":1178,"responseStart":1176.7999997138977,"secureConnectionStart":1002.4000000953674}],"fetchStart":0,"domainLookupStart":108,"domainLookupEnd":116,"connectStart":116,"connectEnd":134,"secureConnectionStart":124,"requestStart":134,"responseStart":357,"responseEnd":371,"domLoading":360,"domInteractive":1200,"domContentLoadedEventStart":1200,"domContentLoadedEventEnd":1248,"domComplete":1600,"loadEventStart":1600,"loadEventEnd":1601,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1174.0999999046326},{"name":"bigPipe.sidebar-id.end","time":1174.9000000953674},{"name":"bigPipe.activity-panel-pipe-id.start","time":1175},{"name":"bigPipe.activity-panel-pipe-id.end","time":1176.4000000953674},{"name":"activityTabFullyLoaded","time":1269.5999999046326}],"measures":[],"correlationId":"63b2681a004ffa","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":135,"dbReadsTimeInMs":19,"dbConnsTimeInMs":42,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Here is other then
MDEV-10554problem: we are trying to make materialized derived which already merged.