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":1005.8999998569489,"ttfb":291.2000000476837,"pageVisibility":"visible","entityId":58214,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":32,"apdex":0.5,"journeyId":"55a36765-3d3d-460c-beed-7c99056a4e7a","navigationType":0,"readyForUser":1093,"redirectCount":0,"resourceLoadedEnd":1121.2999999523163,"resourceLoadedStart":298.7999999523163,"resourceTiming":[{"duration":239.79999995231628,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":298.7999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":298.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":538.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":239.89999985694885,"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":299,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":299,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":538.8999998569489,"responseStart":0,"secureConnectionStart":0},{"duration":248.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":299.2999999523163,"connectEnd":299.2999999523163,"connectStart":299.2999999523163,"domainLookupEnd":299.2999999523163,"domainLookupStart":299.2999999523163,"fetchStart":299.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":299.2999999523163,"responseEnd":547.3999998569489,"responseStart":547.3999998569489,"secureConnectionStart":299.2999999523163},{"duration":301.40000009536743,"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":299.7999999523163,"connectEnd":299.7999999523163,"connectStart":299.7999999523163,"domainLookupEnd":299.7999999523163,"domainLookupStart":299.7999999523163,"fetchStart":299.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":299.7999999523163,"responseEnd":601.2000000476837,"responseStart":601.2000000476837,"secureConnectionStart":299.7999999523163},{"duration":305.09999990463257,"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":300,"connectEnd":300,"connectStart":300,"domainLookupEnd":300,"domainLookupStart":300,"fetchStart":300,"redirectEnd":0,"redirectStart":0,"requestStart":300,"responseEnd":605.0999999046326,"responseStart":605,"secureConnectionStart":300},{"duration":314.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":300.09999990463257,"connectEnd":300.09999990463257,"connectStart":300.09999990463257,"domainLookupEnd":300.09999990463257,"domainLookupStart":300.09999990463257,"fetchStart":300.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":300.09999990463257,"responseEnd":614.5999999046326,"responseStart":614.5999999046326,"secureConnectionStart":300.09999990463257},{"duration":315.2999999523163,"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":300.2999999523163,"connectEnd":300.2999999523163,"connectStart":300.2999999523163,"domainLookupEnd":300.2999999523163,"domainLookupStart":300.2999999523163,"fetchStart":300.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":300.2999999523163,"responseEnd":615.5999999046326,"responseStart":615.5999999046326,"secureConnectionStart":300.2999999523163},{"duration":428.40000009536743,"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":300.39999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":300.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":728.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":315.7999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":300.59999990463257,"connectEnd":300.59999990463257,"connectStart":300.59999990463257,"domainLookupEnd":300.59999990463257,"domainLookupStart":300.59999990463257,"fetchStart":300.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":300.59999990463257,"responseEnd":616.3999998569489,"responseStart":616.3999998569489,"secureConnectionStart":300.59999990463257},{"duration":428.19999980926514,"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":300.7000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":300.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":728.8999998569489,"responseStart":0,"secureConnectionStart":0},{"duration":316.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":300.89999985694885,"connectEnd":300.89999985694885,"connectStart":300.89999985694885,"domainLookupEnd":300.89999985694885,"domainLookupStart":300.89999985694885,"fetchStart":300.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":300.89999985694885,"responseEnd":617.2999999523163,"responseStart":617.2999999523163,"secureConnectionStart":300.89999985694885},{"duration":629.5999999046326,"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":307,"connectEnd":307,"connectStart":307,"domainLookupEnd":307,"domainLookupStart":307,"fetchStart":307,"redirectEnd":0,"redirectStart":0,"requestStart":307,"responseEnd":936.5999999046326,"responseStart":936.5999999046326,"secureConnectionStart":307},{"duration":812,"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":309.2999999523163,"connectEnd":309.2999999523163,"connectStart":309.2999999523163,"domainLookupEnd":309.2999999523163,"domainLookupStart":309.2999999523163,"fetchStart":309.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":309.2999999523163,"responseEnd":1121.2999999523163,"responseStart":1121.2999999523163,"secureConnectionStart":309.2999999523163},{"duration":254,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":813.2999999523163,"connectEnd":813.2999999523163,"connectStart":813.2999999523163,"domainLookupEnd":813.2999999523163,"domainLookupStart":813.2999999523163,"fetchStart":813.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":813.2999999523163,"responseEnd":1067.2999999523163,"responseStart":1067.2999999523163,"secureConnectionStart":813.2999999523163},{"duration":256.7000000476837,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":998.2999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":998.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1255,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":9,"domainLookupEnd":108,"connectStart":109,"connectEnd":127,"secureConnectionStart":117,"requestStart":128,"responseStart":291,"responseEnd":309,"domLoading":294,"domInteractive":1209,"domContentLoadedEventStart":1209,"domContentLoadedEventEnd":1250,"domComplete":1578,"loadEventStart":1578,"loadEventEnd":1579,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1178.5999999046326},{"name":"bigPipe.sidebar-id.end","time":1179.3999998569489},{"name":"bigPipe.activity-panel-pipe-id.start","time":1179.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":1181.3999998569489},{"name":"activityTabFullyLoaded","time":1268.7999999523163}],"measures":[],"correlationId":"bc70439a83d74a","effectiveType":"4g","downlink":9.9,"rtt":0,"serverDuration":92,"dbReadsTimeInMs":11,"dbConnsTimeInMs":21,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
This issue is no longer reproducible.