The standard, section 6.10, <window function>.
syntax rules says:
7) b) The window framing clause of WDX shall not be present.
Trying
select rank() over (order by a rows between 1 preceding and 1 following) from ten;
MariaDB: ok (framing ignored)
PG: Ok (framing ignored)
Oracle: ORA-00907: missing right parenthesis
MS SQL: The function 'rank' may not have a window frame.
I think, it is better to follow the standard and return an error, then to accept the frame definition and then silently ignore it.
Prohibit using window functions of some types with
window frames in full accordance with the SQL standard.
Sergei Petrunia
added a comment - Fixed by:
commit a197c6bb68d77a0ec73b28d1e6473022ea6b1ae0
Prohibit using window functions of some types with
window frames in full accordance with the SQL standard.
People
Igor Babaev (Inactive)
Sergei Petrunia
Votes:
0Vote for this issue
Watchers:
1Start watching this issue
Dates
Created:
Updated:
Resolved:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":1182.5999999046326,"ttfb":321.69999980926514,"pageVisibility":"visible","entityId":56183,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"e4fefe48-7125-4e0a-8b4a-5ee174a81126","navigationType":0,"readyForUser":1255.5999999046326,"redirectCount":0,"resourceLoadedEnd":1319.1999998092651,"resourceLoadedStart":330.19999980926514,"resourceTiming":[{"duration":291.40000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":330.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":330.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":621.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":291.5,"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":330.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":330.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":622,"responseStart":0,"secureConnectionStart":0},{"duration":300.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":330.7999997138977,"connectEnd":330.7999997138977,"connectStart":330.7999997138977,"domainLookupEnd":330.7999997138977,"domainLookupStart":330.7999997138977,"fetchStart":330.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":330.7999997138977,"responseEnd":631.1999998092651,"responseStart":631.1999998092651,"secureConnectionStart":330.7999997138977},{"duration":352.30000019073486,"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":331.2999997138977,"connectEnd":331.2999997138977,"connectStart":331.2999997138977,"domainLookupEnd":331.2999997138977,"domainLookupStart":331.2999997138977,"fetchStart":331.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":331.2999997138977,"responseEnd":683.5999999046326,"responseStart":683.5999999046326,"secureConnectionStart":331.2999997138977},{"duration":356.7999997138977,"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":331.5,"connectEnd":331.5,"connectStart":331.5,"domainLookupEnd":331.5,"domainLookupStart":331.5,"fetchStart":331.5,"redirectEnd":0,"redirectStart":0,"requestStart":331.5,"responseEnd":688.2999997138977,"responseStart":688.2999997138977,"secureConnectionStart":331.5},{"duration":357.19999980926514,"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":331.59999990463257,"connectEnd":331.59999990463257,"connectStart":331.59999990463257,"domainLookupEnd":331.59999990463257,"domainLookupStart":331.59999990463257,"fetchStart":331.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":331.59999990463257,"responseEnd":688.7999997138977,"responseStart":688.7999997138977,"secureConnectionStart":331.59999990463257},{"duration":357.6000003814697,"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":331.7999997138977,"connectEnd":331.7999997138977,"connectStart":331.7999997138977,"domainLookupEnd":331.7999997138977,"domainLookupStart":331.7999997138977,"fetchStart":331.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":331.7999997138977,"responseEnd":689.4000000953674,"responseStart":689.4000000953674,"secureConnectionStart":331.7999997138977},{"duration":444.2999997138977,"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":331.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":331.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":776.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":357.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":332.09999990463257,"connectEnd":332.09999990463257,"connectStart":332.09999990463257,"domainLookupEnd":332.09999990463257,"domainLookupStart":332.09999990463257,"fetchStart":332.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":332.09999990463257,"responseEnd":690,"responseStart":690,"secureConnectionStart":332.09999990463257},{"duration":444,"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":332.2999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":332.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":776.2999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":358.19999980926514,"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":332.40000009536743,"connectEnd":332.40000009536743,"connectStart":332.40000009536743,"domainLookupEnd":332.40000009536743,"domainLookupStart":332.40000009536743,"fetchStart":332.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":332.40000009536743,"responseEnd":690.5999999046326,"responseStart":690.5999999046326,"secureConnectionStart":332.40000009536743},{"duration":567.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":336.40000009536743,"connectEnd":336.40000009536743,"connectStart":336.40000009536743,"domainLookupEnd":336.40000009536743,"domainLookupStart":336.40000009536743,"fetchStart":336.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":336.40000009536743,"responseEnd":903.9000000953674,"responseStart":903.9000000953674,"secureConnectionStart":336.40000009536743},{"duration":981.7999997138977,"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":336.40000009536743,"connectEnd":336.40000009536743,"connectStart":336.40000009536743,"domainLookupEnd":336.40000009536743,"domainLookupStart":336.40000009536743,"fetchStart":336.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":336.40000009536743,"responseEnd":1318.1999998092651,"responseStart":1318.1999998092651,"secureConnectionStart":336.40000009536743},{"duration":116.40000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":788,"connectEnd":788,"connectStart":788,"domainLookupEnd":788,"domainLookupStart":788,"fetchStart":788,"redirectEnd":0,"redirectStart":0,"requestStart":788,"responseEnd":904.4000000953674,"responseStart":904.4000000953674,"secureConnectionStart":788},{"duration":247.69999980926514,"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":1071.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1071.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1319.1999998092651,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":171,"responseStart":322,"responseEnd":337,"domLoading":325,"domInteractive":1348,"domContentLoadedEventStart":1348,"domContentLoadedEventEnd":1428,"domComplete":1681,"loadEventStart":1681,"loadEventEnd":1682,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1322.1999998092651},{"name":"bigPipe.sidebar-id.end","time":1323},{"name":"bigPipe.activity-panel-pipe-id.start","time":1323.1999998092651},{"name":"bigPipe.activity-panel-pipe-id.end","time":1324.0999999046326},{"name":"activityTabFullyLoaded","time":1440.4000000953674}],"measures":[],"correlationId":"9896dea4606311","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":90,"dbReadsTimeInMs":11,"dbConnsTimeInMs":19,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Fixed by:
commit a197c6bb68d77a0ec73b28d1e6473022ea6b1ae0
Prohibit using window functions of some types with
window frames in full accordance with the SQL standard.