CREATE TABLE t1 (a INT, b VARCHAR(8));
|
INSERT INTO t1 VALUES (1,'foo'),(2,'bar');
|
|
CREATE TABLE t2 (c INT);
|
INSERT INTO t2 VALUES (3),(4);
|
|
CREATE TABLE t3 (d INT);
|
INSERT INTO t3 VALUES (5),(6);
|
|
SELECT a, MAX(a), AVG(a) OVER (PARTITION BY b) FROM t1
|
WHERE EXISTS ( SELECT * FROM t2 WHERE c IN ( SELECT MAX(d) FROM t3 ) );
|
Note: PARTITION might be empty as well, it is there just to signify that the crash is not related to empty partition.
Stack trace 10.2 20d7f933e2
|
#3 <signal handler called>
|
#4 0x00007fd8a9ea05e8 in Field::is_null (this=0x7fd89e82a938, row_offset=0) at /data/src/10.2/sql/field.h:1085
|
#5 0x00007fd8a9e9e8b5 in Protocol_text::store (this=0x7fd89e816600, field=0x7fd89e82a938) at /data/src/10.2/sql/protocol.cc:1229
|
#6 0x00007fd8aa1eaf89 in Item_field::send (this=0x7fd89e864200, protocol=0x7fd89e816600, buffer=0x7fd8ab06c660) at /data/src/10.2/sql/item.cc:6749
|
#7 0x00007fd8a9e9da86 in Protocol::send_result_set_row (this=0x7fd89e816600, row_items=0x7fd89e81a390) at /data/src/10.2/sql/protocol.cc:978
|
#8 0x00007fd8a9f1c2ce in select_send::send_data (this=0x7fd89e867e38, items=...) at /data/src/10.2/sql/sql_class.cc:2914
|
#9 0x00007fd8a9fbe87c in return_zero_rows (join=0x7fd89e867e58, result=0x7fd89e867e38, tables=..., fields=..., send_row=true, select_options=2147748608, info=0x7fd8aa9d8cf0 "Impossible WHERE noticed after reading const tables", having=0x0, all_fields=...) at /data/src/10.2/sql/sql_select.cc:12431
|
#10 0x00007fd8a9fa6d46 in JOIN::exec_inner (this=0x7fd89e867e58) at /data/src/10.2/sql/sql_select.cc:3310
|
#11 0x00007fd8a9fa6582 in JOIN::exec (this=0x7fd89e867e58) at /data/src/10.2/sql/sql_select.cc:3184
|
#12 0x00007fd8a9fa76d9 in mysql_select (thd=0x7fd89e816070, tables=0x7fd89e864bc8, wild_num=0, fields=..., conds=0x7fd89e867b60, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x7fd89e867e38, unit=0x7fd89e819b30, select_lex=0x7fd89e81a268) at /data/src/10.2/sql/sql_select.cc:3569
|
#13 0x00007fd8a9f9c7f5 in handle_select (thd=0x7fd89e816070, lex=0x7fd89e819a68, result=0x7fd89e867e38, setup_tables_done_option=0) at /data/src/10.2/sql/sql_select.cc:373
|
#14 0x00007fd8a9f6a38b in execute_sqlcom_select (thd=0x7fd89e816070, all_tables=0x7fd89e864bc8) at /data/src/10.2/sql/sql_parse.cc:6347
|
#15 0x00007fd8a9f5fe79 in mysql_execute_command (thd=0x7fd89e816070) at /data/src/10.2/sql/sql_parse.cc:3376
|
#16 0x00007fd8a9f6dd4a in mysql_parse (thd=0x7fd89e816070, rawbuf=0x7fd89e864088 "SELECT a, MAX(a), AVG(a) OVER (PARTITION BY b) FROM t1\nWHERE EXISTS ( SELECT * FROM t2 WHERE c IN ( SELECT MAX(d) FROM t3 ) )", length=125, parser_state=0x7fd8ab06ddd0, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:7790
|
#17 0x00007fd8a9f5bacd in dispatch_command (command=COM_QUERY, thd=0x7fd89e816070, packet=0x7fd89e858071 "", packet_length=125, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:1805
|
#18 0x00007fd8a9f5a4a7 in do_command (thd=0x7fd89e816070) at /data/src/10.2/sql/sql_parse.cc:1365
|
#19 0x00007fd8aa09fd86 in do_handle_one_connection (connect=0x7fd8a6c6d410) at /data/src/10.2/sql/sql_connect.cc:1354
|
#20 0x00007fd8aa09fb13 in handle_one_connection (arg=0x7fd8a6c6d410) at /data/src/10.2/sql/sql_connect.cc:1260
|
#21 0x00007fd8aa3cb73e in pfs_spawn_thread (arg=0x7fd8a6c519f0) at /data/src/10.2/storage/perfschema/pfs.cc:1862
|
#22 0x00007fd8a95c90a4 in start_thread (arg=0x7fd8ab06f300) at pthread_create.c:309
|
#23 0x00007fd8a778187d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
|
{"report":{"fcp":1002.5,"ttfb":233.29999995231628,"pageVisibility":"visible","entityId":58214,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"981c2af4-b7e4-4b8e-99b1-aa702e5dc189","navigationType":0,"readyForUser":1095.5999999046326,"redirectCount":0,"resourceLoadedEnd":996.4000000953674,"resourceLoadedStart":241.20000004768372,"resourceTiming":[{"duration":185.29999995231628,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":241.20000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":241.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":426.5,"responseStart":0,"secureConnectionStart":0},{"duration":185.40000009536743,"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":241.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":241.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":426.90000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":194.89999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":241.70000004768372,"connectEnd":241.70000004768372,"connectStart":241.70000004768372,"domainLookupEnd":241.70000004768372,"domainLookupStart":241.70000004768372,"fetchStart":241.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":241.70000004768372,"responseEnd":436.59999990463257,"responseStart":436.59999990463257,"secureConnectionStart":241.70000004768372},{"duration":381.19999980926514,"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":241.90000009536743,"connectEnd":241.90000009536743,"connectStart":241.90000009536743,"domainLookupEnd":241.90000009536743,"domainLookupStart":241.90000009536743,"fetchStart":241.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":241.90000009536743,"responseEnd":623.0999999046326,"responseStart":623.0999999046326,"secureConnectionStart":241.90000009536743},{"duration":384.60000014305115,"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":242.09999990463257,"connectEnd":242.09999990463257,"connectStart":242.09999990463257,"domainLookupEnd":242.09999990463257,"domainLookupStart":242.09999990463257,"fetchStart":242.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":242.09999990463257,"responseEnd":626.7000000476837,"responseStart":626.7000000476837,"secureConnectionStart":242.09999990463257},{"duration":385,"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":242.29999995231628,"connectEnd":242.29999995231628,"connectStart":242.29999995231628,"domainLookupEnd":242.29999995231628,"domainLookupStart":242.29999995231628,"fetchStart":242.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":242.29999995231628,"responseEnd":627.2999999523163,"responseStart":627.2000000476837,"secureConnectionStart":242.29999995231628},{"duration":385.09999990463257,"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":242.5,"connectEnd":242.5,"connectStart":242.5,"domainLookupEnd":242.5,"domainLookupStart":242.5,"fetchStart":242.5,"redirectEnd":0,"redirectStart":0,"requestStart":242.5,"responseEnd":627.5999999046326,"responseStart":627.5999999046326,"secureConnectionStart":242.5},{"duration":386,"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":242.70000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":242.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":628.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":385.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":242.90000009536743,"connectEnd":242.90000009536743,"connectStart":242.90000009536743,"domainLookupEnd":242.90000009536743,"domainLookupStart":242.90000009536743,"fetchStart":242.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":242.90000009536743,"responseEnd":628,"responseStart":628,"secureConnectionStart":242.90000009536743},{"duration":385.7000000476837,"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":243.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":243.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":628.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":385.40000009536743,"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":243.29999995231628,"connectEnd":243.29999995231628,"connectStart":243.29999995231628,"domainLookupEnd":243.29999995231628,"domainLookupStart":243.29999995231628,"fetchStart":243.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":243.29999995231628,"responseEnd":628.7000000476837,"responseStart":628.7000000476837,"secureConnectionStart":243.29999995231628},{"duration":605.1000001430511,"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":251.59999990463257,"connectEnd":251.59999990463257,"connectStart":251.59999990463257,"domainLookupEnd":251.59999990463257,"domainLookupStart":251.59999990463257,"fetchStart":251.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":251.59999990463257,"responseEnd":856.7000000476837,"responseStart":856.7000000476837,"secureConnectionStart":251.59999990463257},{"duration":737.2999999523163,"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":251.70000004768372,"connectEnd":251.70000004768372,"connectStart":251.70000004768372,"domainLookupEnd":251.70000004768372,"domainLookupStart":251.70000004768372,"fetchStart":251.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":251.70000004768372,"responseEnd":989,"responseStart":989,"secureConnectionStart":251.70000004768372},{"duration":259.2000000476837,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":596.7999999523163,"connectEnd":596.7999999523163,"connectStart":596.7999999523163,"domainLookupEnd":596.7999999523163,"domainLookupStart":596.7999999523163,"fetchStart":596.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":596.7999999523163,"responseEnd":856,"responseStart":856,"secureConnectionStart":596.7999999523163},{"duration":96.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":899.9000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":899.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":996.4000000953674,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":46,"responseStart":233,"responseEnd":250,"domLoading":237,"domInteractive":1162,"domContentLoadedEventStart":1162,"domContentLoadedEventEnd":1216,"domComplete":1701,"loadEventStart":1701,"loadEventEnd":1702,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1141.9000000953674},{"name":"bigPipe.sidebar-id.end","time":1142.7000000476837},{"name":"bigPipe.activity-panel-pipe-id.start","time":1142.9000000953674},{"name":"bigPipe.activity-panel-pipe-id.end","time":1144.4000000953674},{"name":"activityTabFullyLoaded","time":1230.9000000953674}],"measures":[],"correlationId":"172b9d6701a4ca","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":105,"dbReadsTimeInMs":16,"dbConnsTimeInMs":26,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}