SET use_stat_tables=PREFERABLY;
|
SET optimizer_use_condition_selectivity=3;
|
|
CREATE TABLE t1 (a INT) ENGINE=MyISAM;
|
INSERT INTO t1 VALUES (10);
|
|
CREATE TABLE t2 (id INT, flag CHAR(1), INDEX(id)) ENGINE=MyISAM;
|
INSERT INTO t2 VALUES (100,'0'),(101,'1');
|
|
ANALYZE TABLE t1, t2;
|
|
SELECT * FROM t1, t2 WHERE id = a AND ( a = 16 OR flag AND a != 6 );
|
#2 0x0000000000850f69 in handle_fatal_signal (sig=11) at 10.0/sql/signal_handler.cc:262
|
#3 <signal handler called>
|
#4 0x0000000000961e6a in calculate_cond_selectivity_for_table (thd=0x7fb4adb3d070, table=0x7fb4aaca2470, cond=0x7fb4aaf93bb8) at 10.0/sql/opt_range.cc:3473
|
#5 0x00000000006aa171 in make_join_statistics (join=0x7fb4aaf4e088, tables_list=..., conds=0x7fb4aaf93bb8, keyuse_array=0x7fb4aaf4e390) at 10.0/sql/sql_select.cc:3934
|
#6 0x00000000006a135a in JOIN::optimize_inner (this=0x7fb4aaf4e088) at 10.0/sql/sql_select.cc:1327
|
#7 0x00000000006a0318 in JOIN::optimize (this=0x7fb4aaf4e088) at 10.0/sql/sql_select.cc:1013
|
#8 0x00000000006a7e83 in mysql_select (thd=0x7fb4adb3d070, rref_pointer_array=0x7fb4adb416a0, tables=0x7fb4aaf922d0, wild_num=1, fields=..., conds=0x7fb4aaf93bb8, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x7fb4aaf93da0, unit=0x7fb4adb40d48, select_lex=0x7fb4adb41428) at 10.0/sql/sql_select.cc:3278
|
#9 0x000000000069e66f in handle_select (thd=0x7fb4adb3d070, lex=0x7fb4adb40c88, result=0x7fb4aaf93da0, setup_tables_done_option=0) at 10.0/sql/sql_select.cc:372
|
#10 0x0000000000673721 in execute_sqlcom_select (thd=0x7fb4adb3d070, all_tables=0x7fb4aaf922d0) at 10.0/sql/sql_parse.cc:5301
|
#11 0x000000000066bacc in mysql_execute_command (thd=0x7fb4adb3d070) at 10.0/sql/sql_parse.cc:2587
|
#12 0x0000000000675eab in mysql_parse (thd=0x7fb4adb3d070, rawbuf=0x7fb4aaf92088 "SELECT * FROM t1, t2 WHERE id = a AND ( a = 16 OR flag AND a != 6 )", length=67, parser_state=0x7fb4b5602630) at 10.0/sql/sql_parse.cc:6447
|
#13 0x0000000000668c79 in dispatch_command (command=COM_QUERY, thd=0x7fb4adb3d070, packet=0x7fb4adb33071 "SELECT * FROM t1, t2 WHERE id = a AND ( a = 16 OR flag AND a != 6 )", packet_length=67) at 10.0/sql/sql_parse.cc:1308
|
#14 0x000000000066801b in do_command (thd=0x7fb4adb3d070) at 10.0/sql/sql_parse.cc:1005
|
#15 0x0000000000782275 in do_handle_one_connection (thd_arg=0x7fb4adb3d070) at 10.0/sql/sql_connect.cc:1379
|
#16 0x0000000000781fc8 in handle_one_connection (arg=0x7fb4adb3d070) at 10.0/sql/sql_connect.cc:1293
|
#17 0x0000000000aa8661 in pfs_spawn_thread (arg=0x7fb4ace5c090) at 10.0/storage/perfschema/pfs.cc:1853
|
#18 0x00007fb4b5350b50 in start_thread (arg=<optimized out>) at pthread_create.c:304
|
#19 0x00007fb4b3e9fa7d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
|
revision-id: sergii@pisem.net-20140206153840-87zgw53lgkyvvdvp
|
revno: 3992
|
branch-nick: 10.0
|
{"report":{"fcp":2074.5,"ttfb":504.7000002861023,"pageVisibility":"visible","entityId":30419,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"06297d78-ef72-480f-a172-b14c2834f3f0","navigationType":0,"readyForUser":2156.5,"redirectCount":0,"resourceLoadedEnd":2369.0999999046326,"resourceLoadedStart":559.8000001907349,"resourceTiming":[{"duration":700.0999999046326,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":559.8000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":559.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1259.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":700.3000001907349,"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":560.0999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":560.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1260.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":709.5999999046326,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":560.3000001907349,"connectEnd":560.3000001907349,"connectStart":560.3000001907349,"domainLookupEnd":560.3000001907349,"domainLookupStart":560.3000001907349,"fetchStart":560.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":560.3000001907349,"responseEnd":1269.9000000953674,"responseStart":1269.9000000953674,"secureConnectionStart":560.3000001907349},{"duration":785.5,"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":560.5,"connectEnd":560.5,"connectStart":560.5,"domainLookupEnd":560.5,"domainLookupStart":560.5,"fetchStart":560.5,"redirectEnd":0,"redirectStart":0,"requestStart":560.5,"responseEnd":1346,"responseStart":1346,"secureConnectionStart":560.5},{"duration":790.8000001907349,"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":560.5999999046326,"connectEnd":560.5999999046326,"connectStart":560.5999999046326,"domainLookupEnd":560.5999999046326,"domainLookupStart":560.5999999046326,"fetchStart":560.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":560.5999999046326,"responseEnd":1351.4000000953674,"responseStart":1351.4000000953674,"secureConnectionStart":560.5999999046326},{"duration":791.1999998092651,"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":560.8000001907349,"connectEnd":560.8000001907349,"connectStart":560.8000001907349,"domainLookupEnd":560.8000001907349,"domainLookupStart":560.8000001907349,"fetchStart":560.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":560.8000001907349,"responseEnd":1352,"responseStart":1351.9000000953674,"secureConnectionStart":560.8000001907349},{"duration":798.7000002861023,"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":561.0999999046326,"connectEnd":561.0999999046326,"connectStart":561.0999999046326,"domainLookupEnd":561.0999999046326,"domainLookupStart":561.0999999046326,"fetchStart":561.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":561.0999999046326,"responseEnd":1359.8000001907349,"responseStart":1359.8000001907349,"secureConnectionStart":561.0999999046326},{"duration":869.1999998092651,"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":561.2000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":561.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1430.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":801,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":561.3000001907349,"connectEnd":561.3000001907349,"connectStart":561.3000001907349,"domainLookupEnd":561.3000001907349,"domainLookupStart":561.3000001907349,"fetchStart":561.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":561.3000001907349,"responseEnd":1362.3000001907349,"responseStart":1362.3000001907349,"secureConnectionStart":561.3000001907349},{"duration":869.4000000953674,"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":561.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":561.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1430.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":803,"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":561.5999999046326,"connectEnd":561.5999999046326,"connectStart":561.5999999046326,"domainLookupEnd":561.5999999046326,"domainLookupStart":561.5999999046326,"fetchStart":561.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":561.5999999046326,"responseEnd":1364.5999999046326,"responseStart":1364.5999999046326,"secureConnectionStart":561.5999999046326},{"duration":1072.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":562.4000000953674,"connectEnd":562.4000000953674,"connectStart":562.4000000953674,"domainLookupEnd":562.4000000953674,"domainLookupStart":562.4000000953674,"fetchStart":562.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":562.4000000953674,"responseEnd":1634.9000000953674,"responseStart":1634.9000000953674,"secureConnectionStart":562.4000000953674},{"duration":1801.6999998092651,"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":562.4000000953674,"connectEnd":562.4000000953674,"connectStart":562.4000000953674,"domainLookupEnd":562.4000000953674,"domainLookupStart":562.4000000953674,"fetchStart":562.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":562.4000000953674,"responseEnd":2364.0999999046326,"responseStart":2364.0999999046326,"secureConnectionStart":562.4000000953674},{"duration":200.39999961853027,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1474.2000002861023,"connectEnd":1474.2000002861023,"connectStart":1474.2000002861023,"domainLookupEnd":1474.2000002861023,"domainLookupStart":1474.2000002861023,"fetchStart":1474.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":1474.2000002861023,"responseEnd":1674.5999999046326,"responseStart":1674.5999999046326,"secureConnectionStart":1474.2000002861023},{"duration":549.8999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":1819.2000002861023,"connectEnd":1819.2000002861023,"connectStart":1819.2000002861023,"domainLookupEnd":1819.2000002861023,"domainLookupStart":1819.2000002861023,"fetchStart":1819.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":1819.2000002861023,"responseEnd":2369.0999999046326,"responseStart":2369.0999999046326,"secureConnectionStart":1819.2000002861023}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":356,"responseStart":505,"responseEnd":547,"domLoading":547,"domInteractive":2404,"domContentLoadedEventStart":2404,"domContentLoadedEventEnd":2450,"domComplete":3243,"loadEventStart":3243,"loadEventEnd":3244,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2373.2000002861023},{"name":"bigPipe.sidebar-id.end","time":2379.300000190735},{"name":"bigPipe.activity-panel-pipe-id.start","time":2379.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":2380.4000000953674},{"name":"activityTabFullyLoaded","time":2471.800000190735}],"measures":[],"correlationId":"78e687a3a65284","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":86,"dbReadsTimeInMs":9,"dbConnsTimeInMs":16,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
The fix for this bug was pushed into the 10.0-base tree.