Type:
Technical task
Priority:
Major
Resolution:
Fixed
Affects Version/s:
None
Component/s:
None
#4 0x00000000007eb634 in Item_field::Item_field (this=0x24ba5e8, thd=0x2488890, context_arg=0x24b55d0, f=0x0) at 0.0-exists2in/sql/item.cc:2218
#5 0x0000000000871c29 in Item_exists_subselect::exists2in_processor (this=0x24d4f28, opt_arg=0x2488890 "\220\026?\001") at 0.0-exists2in/sql/item_subselect.cc:2763
#6 0x000000000086b86f in Item_subselect::walk (this=0x24d4f28, processor=&virtual table offset 760, walk_subquery=false, argument=0x2488890 "\220\026?\001") at 0.0-exists2in/sql/item_subselect.cc:625
#7 0x00000000008322b3 in Item_func::walk (this=0x24ba338, processor=&virtual table offset 760, walk_subquery=false, argument=0x2488890 "\220\026?\001") at 0.0-exists2in/sql/item_func.cc:299
#8 0x00000000008322b3 in Item_func::walk (this=0x24adf48, processor=&virtual table offset 760, walk_subquery=false, argument=0x2488890 "\220\026?\001") at 0.0-exists2in/sql/item_func.cc:299
#9 0x0000000000645635 in JOIN::optimize_inner (this=0x24b7d18) at 0.0-exists2in/sql/sql_select.cc:1045
#10 0x0000000000645414 in JOIN::optimize (this=0x24b7d18) at 0.0-exists2in/sql/sql_select.cc:994
#11 0x000000000064d0f2 in mysql_select (thd=0x2488890, rref_pointer_array=0x248bc58, tables=0x2490a78, wild_num=1, fields=..., conds=0x24adf48, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x24493a8, unit=0x248b2b0, select_lex=0x248b9a8) at 0.0-exists2in/sql/sql_select.cc:3193
#12 0x000000000064387e in handle_select (thd=0x2488890, lex=0x248b200, result=0x24493a8, setup_tables_done_option=0) at 0.0-exists2in/sql/sql_select.cc:362
#13 0x000000000061b13b in execute_sqlcom_select (thd=0x2488890, all_tables=0x2490a78) at 0.0-exists2in/sql/sql_parse.cc:4937
#14 0x00000000006137a8 in mysql_execute_command (thd=0x2488890) at 0.0-exists2in/sql/sql_parse.cc:2421
#15 0x000000000061d9f6 in mysql_parse (thd=0x2488890, rawbuf=0x258ace8 "SELECT * FROM t1 AS alias WHERE NOT EXISTS ( SELECT * FROM v1 WHERE a = alias.a )", length=81, parser_state=0x7f394325f4e0) at 0.0-exists2in/sql/sql_parse.cc:6056
#16 0x000000000061099a in dispatch_command (command=COM_QUERY, thd=0x2488890, packet=0x2492aa1 "SELECT * FROM t1 AS alias WHERE NOT EXISTS ( SELECT * FROM v1 WHERE a = alias.a )", packet_length=81) at 0.0-exists2in/sql/sql_parse.cc:1216
#17 0x000000000060fb93 in do_command (thd=0x2488890) at 0.0-exists2in/sql/sql_parse.cc:945
#18 0x000000000071a57a in do_handle_one_connection (thd_arg=0x2488890) at 0.0-exists2in/sql/sql_connect.cc:1254
branch: 10.0-exists2in
revision-id: sanja@montyprogram.com-20121129101823-k7kt2gjym2mmiqe7
date: 2012-11-29 12:18:23 +0200
revno: 3485
Full optimizer_switch:
index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=off,table_elimination=on,extended_keys=off,exists_to_in=on
EXPLAIN also crashes.
Test case:
SET optimizer_switch = 'exists_to_in=on' ;
CREATE TABLE t1 (a INT NOT NULL ) ENGINE=MyISAM;
CREATE ALGORITHM=MERGE VIEW v1 AS SELECT * FROM t1;
INSERT INTO t1 VALUES (1),(2);
SELECT * FROM t1 AS alias WHERE NOT EXISTS ( SELECT * FROM v1 WHERE a = alias.a );
There are no comments yet on this issue.
{"report":{"fcp":3047.6000003814697,"ttfb":1080,"pageVisibility":"visible","entityId":22120,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"62ee1f80-6b7d-4170-bafb-b2b5bd6d5a1c","navigationType":0,"readyForUser":3123.9000005722046,"redirectCount":0,"resourceLoadedEnd":4161.300000190735,"resourceLoadedStart":1096.6999998092651,"resourceTiming":[{"duration":1449.2000007629395,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":1096.6999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1096.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2545.9000005722046,"responseStart":0,"secureConnectionStart":0},{"duration":1449.2999992370605,"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":1096.9000005722046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1096.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2546.199999809265,"responseStart":0,"secureConnectionStart":0},{"duration":1458.3999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":1097.1000003814697,"connectEnd":1097.1000003814697,"connectStart":1097.1000003814697,"domainLookupEnd":1097.1000003814697,"domainLookupStart":1097.1000003814697,"fetchStart":1097.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":1097.1000003814697,"responseEnd":2555.5,"responseStart":2555.5,"secureConnectionStart":1097.1000003814697},{"duration":1503.8999996185303,"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":1097.3000001907349,"connectEnd":1097.3000001907349,"connectStart":1097.3000001907349,"domainLookupEnd":1097.3000001907349,"domainLookupStart":1097.3000001907349,"fetchStart":1097.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1097.3000001907349,"responseEnd":2601.199999809265,"responseStart":2601.199999809265,"secureConnectionStart":1097.3000001907349},{"duration":1508,"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":1097.5,"connectEnd":1097.5,"connectStart":1097.5,"domainLookupEnd":1097.5,"domainLookupStart":1097.5,"fetchStart":1097.5,"redirectEnd":0,"redirectStart":0,"requestStart":1097.5,"responseEnd":2605.5,"responseStart":2605.5,"secureConnectionStart":1097.5},{"duration":1508.3000001907349,"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":1097.6999998092651,"connectEnd":1097.6999998092651,"connectStart":1097.6999998092651,"domainLookupEnd":1097.6999998092651,"domainLookupStart":1097.6999998092651,"fetchStart":1097.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":1097.6999998092651,"responseEnd":2606,"responseStart":2606,"secureConnectionStart":1097.6999998092651},{"duration":1508.8999996185303,"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":1097.8000001907349,"connectEnd":1097.8000001907349,"connectStart":1097.8000001907349,"domainLookupEnd":1097.8000001907349,"domainLookupStart":1097.8000001907349,"fetchStart":1097.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1097.8000001907349,"responseEnd":2606.699999809265,"responseStart":2606.699999809265,"secureConnectionStart":1097.8000001907349},{"duration":1605.8000001907349,"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":1098.1000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1098.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2703.9000005722046,"responseStart":0,"secureConnectionStart":0},{"duration":1509.2000007629395,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":1098.1999998092651,"connectEnd":1098.1999998092651,"connectStart":1098.1999998092651,"domainLookupEnd":1098.1999998092651,"domainLookupStart":1098.1999998092651,"fetchStart":1098.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":1098.1999998092651,"responseEnd":2607.4000005722046,"responseStart":2607.4000005722046,"secureConnectionStart":1098.1999998092651},{"duration":1605.8000001907349,"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":1098.3000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1098.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2704.1000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":1509.6999998092651,"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":1098.4000005722046,"connectEnd":1098.4000005722046,"connectStart":1098.4000005722046,"domainLookupEnd":1098.4000005722046,"domainLookupStart":1098.4000005722046,"fetchStart":1098.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":1098.4000005722046,"responseEnd":2608.1000003814697,"responseStart":2608.1000003814697,"secureConnectionStart":1098.4000005722046},{"duration":2468.2000007629395,"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":1099.1999998092651,"connectEnd":1099.1999998092651,"connectStart":1099.1999998092651,"domainLookupEnd":1099.1999998092651,"domainLookupStart":1099.1999998092651,"fetchStart":1099.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":1099.1999998092651,"responseEnd":3567.4000005722046,"responseStart":3567.4000005722046,"secureConnectionStart":1099.1999998092651},{"duration":3062.1000003814697,"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":1099.1999998092651,"connectEnd":1099.1999998092651,"connectStart":1099.1999998092651,"domainLookupEnd":1099.1999998092651,"domainLookupStart":1099.1999998092651,"fetchStart":1099.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":1099.1999998092651,"responseEnd":4161.300000190735,"responseStart":4161.300000190735,"secureConnectionStart":1099.1999998092651},{"duration":840.6999998092651,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":2746.1000003814697,"connectEnd":2746.1000003814697,"connectStart":2746.1000003814697,"domainLookupEnd":2746.1000003814697,"domainLookupStart":2746.1000003814697,"fetchStart":2746.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":2746.1000003814697,"responseEnd":3586.800000190735,"responseStart":3586.800000190735,"secureConnectionStart":2746.1000003814697}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":917,"responseStart":1080,"responseEnd":1083,"domLoading":1095,"domInteractive":4176,"domContentLoadedEventStart":4176,"domContentLoadedEventEnd":4220,"domComplete":5064,"loadEventStart":5064,"loadEventEnd":5065,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":4164.900000572205},{"name":"bigPipe.sidebar-id.end","time":4165.800000190735},{"name":"bigPipe.activity-panel-pipe-id.start","time":4166.10000038147},{"name":"bigPipe.activity-panel-pipe-id.end","time":4166.699999809265},{"name":"activityTabFullyLoaded","time":4227.5}],"measures":[],"correlationId":"1fdb62209c653c","effectiveType":"4g","downlink":9.9,"rtt":0,"serverDuration":98,"dbReadsTimeInMs":10,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}