Type:
Task
Priority:
Major
Resolution:
Fixed
drop table if exists t1;
create table t1 (i int );
insert into t1 values (1),(2);
SELECT COUNT (*) OVER ( PARTITION BY (i) ROWS 0 PRECEDING ) FROM t1;
Stack trace from bb-10.2-mdev9543 commit e292ea8751f83ad0e23d16abc4599eac0390db94
sql/sql_window.cc:1499: Frame_cursor* get_frame_cursor(Window_frame*, bool): Assertion `n_rows > 0' failed.
160410 11:48:29 [ERROR] mysqld got signal 6 ;
#7 0x00007f87e539b192 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
#8 0x00007f87e7af7416 in Window_func_runner::setup (this=0x7f87b7d9c480, thd=0x7f87b7c14070) at sql/sql_window.cc:1769
#9 0x00007f87e7af76a4 in Window_funcs_sort::setup (this=0x7f87b7d9c458, thd=0x7f87b7c14070, sel=0x0, it=...) at sql/sql_window.cc:1838
#10 0x00007f87e7af78df in Window_funcs_computation::setup (this=0x7f87b7d9c438, thd=0x7f87b7c14070, window_funcs=0x7f87b7c18538, tab=0x7f87b7d9b660) at sql/sql_window.cc:1883
#11 0x00007f87e798e582 in JOIN::make_aggr_tables_info (this=0x7f87b7d99fd8) at sql/sql_select.cc:2666
#12 0x00007f87e798c0b3 in JOIN::optimize_inner (this=0x7f87b7d99fd8) at sql/sql_select.cc:2065
#13 0x00007f87e7988c5a in JOIN::optimize (this=0x7f87b7d99fd8) at sql/sql_select.cc:1063
#14 0x00007f87e7990efd in mysql_select (thd=0x7f87b7c14070, tables=0x7f87b7d998e0, wild_num=0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x7f87b7d99fb8, unit=0x7f87b7c17ac0, select_lex=0x7f87b7c181e0) at sql/sql_select.cc:3517
#15 0x00007f87e7986862 in handle_select (thd=0x7f87b7c14070, lex=0x7f87b7c179f8, result=0x7f87b7d99fb8, setup_tables_done_option=0) at sql/sql_select.cc:377
#16 0x00007f87e79563cd in execute_sqlcom_select (thd=0x7f87b7c14070, all_tables=0x7f87b7d998e0) at sql/sql_parse.cc:6300
#17 0x00007f87e794c0fb in mysql_execute_command (thd=0x7f87b7c14070) at sql/sql_parse.cc:3339
#18 0x00007f87e7959a62 in mysql_parse (thd=0x7f87b7c14070, rawbuf=0x7f87b7d99088 "SELECT MAX( ALL 0 ) OVER ( PARTITION BY (i COLLATE latin1_general_ci) ROWS UNBOUNDED PRECEDING ) FROM t1", length=104, parser_state=0x7f87e73b39c0, is_next_command=false) at sql/sql_parse.cc:7703
#19 0x00007f87e7947fcd in dispatch_command (command=COM_QUERY, thd=0x7f87b7c14070, packet=0x7f87b7cba071 "SELECT MAX( ALL 0 ) OVER ( PARTITION BY (i COLLATE latin1_general_ci) ROWS UNBOUNDED PRECEDING ) FROM t1", packet_length=104, is_com_multi=false, is_next_command=false) at sql/sql_parse.cc:1791
#20 0x00007f87e7946a42 in do_command (thd=0x7f87b7c14070) at sql/sql_parse.cc:1354
#21 0x00007f87e7a7c6e0 in do_handle_one_connection (connect=0x7f87e4874f30) at sql/sql_connect.cc:1358
#22 0x00007f87e7a7c472 in handle_one_connection (arg=0x7f87e4874f30) at sql/sql_connect.cc:1264
#23 0x00007f87e5d32e9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#24 0x00007f87e545fcbd in clone () from /lib/x86_64-linux-gnu/libc.so.6
Sergei Petrunia
made changes -
2016-04-10 14:24
Fix Version/s
N/A
[ 14700
]
Fix Version/s
10.2
[ 14601
]
Resolution
Fixed
[ 1
]
Status
Open
[ 1
]
Closed
[ 6
]
Elena Stepanova
made changes -
2016-04-14 20:07
Component/s
Optimizer - Window functions
[ 13502
]
Component/s
Optimizer
[ 10200
]
Sergei Golubchik
made changes -
2021-12-06 21:23
Workflow
MariaDB v3
[ 74792
]
MariaDB v4
[ 132840
]
{"report":{"fcp":1244.5,"ttfb":291.19999980926514,"pageVisibility":"visible","entityId":56391,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"1cc25d7d-c57c-4c4d-8864-171e6cb0db9a","navigationType":0,"readyForUser":1331.1999998092651,"redirectCount":0,"resourceLoadedEnd":899,"resourceLoadedStart":296.80000019073486,"resourceTiming":[{"duration":18.59999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":296.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":296.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":315.40000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":19.200000286102295,"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":297.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":297.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":316.30000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":411.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":297.19999980926514,"connectEnd":317.19999980926514,"connectStart":317.19999980926514,"domainLookupEnd":317.19999980926514,"domainLookupStart":317.19999980926514,"fetchStart":297.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":318.19999980926514,"responseEnd":708.5,"responseStart":349.69999980926514,"secureConnectionStart":317.19999980926514},{"duration":601.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":297.5,"connectEnd":297.5,"connectStart":297.5,"domainLookupEnd":297.5,"domainLookupStart":297.5,"fetchStart":297.5,"redirectEnd":0,"redirectStart":0,"requestStart":338.90000009536743,"responseEnd":899,"responseStart":358.5,"secureConnectionStart":297.5},{"duration":119.10000038146973,"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":297.69999980926514,"connectEnd":297.69999980926514,"connectStart":297.69999980926514,"domainLookupEnd":297.69999980926514,"domainLookupStart":297.69999980926514,"fetchStart":297.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":339.09999990463257,"responseEnd":416.80000019073486,"responseStart":394.59999990463257,"secureConnectionStart":297.69999980926514},{"duration":119.2999997138977,"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":297.90000009536743,"connectEnd":297.90000009536743,"connectStart":297.90000009536743,"domainLookupEnd":297.90000009536743,"domainLookupStart":297.90000009536743,"fetchStart":297.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":339.19999980926514,"responseEnd":417.19999980926514,"responseStart":405.5,"secureConnectionStart":297.90000009536743},{"duration":121.30000019073486,"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":298.09999990463257,"connectEnd":298.09999990463257,"connectStart":298.09999990463257,"domainLookupEnd":298.09999990463257,"domainLookupStart":298.09999990463257,"fetchStart":298.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":339.80000019073486,"responseEnd":419.40000009536743,"responseStart":407.30000019073486,"secureConnectionStart":298.09999990463257},{"duration":38.19999980926514,"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":298.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":298.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":336.5,"responseStart":0,"secureConnectionStart":0},{"duration":122.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":298.40000009536743,"connectEnd":298.40000009536743,"connectStart":298.40000009536743,"domainLookupEnd":298.40000009536743,"domainLookupStart":298.40000009536743,"fetchStart":298.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":340.30000019073486,"responseEnd":421,"responseStart":410.5,"secureConnectionStart":298.40000009536743},{"duration":38.799999713897705,"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":298.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":298.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":337.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":125.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":299,"connectEnd":299,"connectStart":299,"domainLookupEnd":299,"domainLookupStart":299,"fetchStart":299,"redirectEnd":0,"redirectStart":0,"requestStart":342.09999990463257,"responseEnd":424.40000009536743,"responseStart":421.69999980926514,"secureConnectionStart":299},{"duration":575.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":305.30000019073486,"connectEnd":305.30000019073486,"connectStart":305.30000019073486,"domainLookupEnd":305.30000019073486,"domainLookupStart":305.30000019073486,"fetchStart":305.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":416.59999990463257,"responseEnd":880.9000000953674,"responseStart":876.1999998092651,"secureConnectionStart":305.30000019073486},{"duration":580.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":309,"connectEnd":309,"connectStart":309,"domainLookupEnd":309,"domainLookupStart":309,"fetchStart":309,"redirectEnd":0,"redirectStart":0,"requestStart":423.90000009536743,"responseEnd":889.6999998092651,"responseStart":881.1999998092651,"secureConnectionStart":309},{"duration":221.89999961853027,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":915.8000001907349,"connectEnd":915.8000001907349,"connectStart":915.8000001907349,"domainLookupEnd":915.8000001907349,"domainLookupStart":915.8000001907349,"fetchStart":915.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1101.1999998092651,"responseEnd":1137.6999998092651,"responseStart":1136.9000000953674,"secureConnectionStart":915.8000001907349}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":94,"responseStart":291,"responseEnd":309,"domLoading":294,"domInteractive":1449,"domContentLoadedEventStart":1450,"domContentLoadedEventEnd":1509,"domComplete":2156,"loadEventStart":2156,"loadEventEnd":2156,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1409.8000001907349},{"name":"bigPipe.sidebar-id.end","time":1410.6999998092651},{"name":"bigPipe.activity-panel-pipe-id.start","time":1410.8000001907349},{"name":"bigPipe.activity-panel-pipe-id.end","time":1413.0999999046326},{"name":"activityTabFullyLoaded","time":1527.5}],"measures":[],"correlationId":"4a0caba60ff07b","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":108,"dbReadsTimeInMs":15,"dbConnsTimeInMs":23,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}