Type:
Task
Priority:
Major
Resolution:
Unresolved
Fix Version/s:
None
Component/s:
None
MDEV-26278 only considers derived tables having GROUP BY expressions. But if a derived table has SELECT DISTINCT this can also be considered as if table has a unique key on selected fields, and so can be a subject to elimination:
select t1.* from t1 left join ( select distinct a from t2) D on D.a=t1.a;
Also MDEV-26278 does not implement elimination for derived tables with UNION, though it seems possible:
select t1.* from t1 left join
( select distinct a from t2
union
select distinct a from t3) D
on D.a=t1.a;
relates to
MDEV-26278
Table elimination does not work across derived tables
Closed
No workflow transitions have been executed yet.
{"report":{"fcp":1287.8999996185303,"ttfb":182.19999980926514,"pageVisibility":"visible","entityId":111862,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"92262d4c-b80e-4add-bc59-f63338f9f857","navigationType":0,"readyForUser":1380.5999994277954,"redirectCount":0,"resourceLoadedEnd":1231.2999992370605,"resourceLoadedStart":188.19999980926514,"resourceTiming":[{"duration":343.0999994277954,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":188.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":188.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":531.2999992370605,"responseStart":0,"secureConnectionStart":0},{"duration":343.19999980926514,"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":188.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":188.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":531.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":352.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":188.69999980926514,"connectEnd":188.69999980926514,"connectStart":188.69999980926514,"domainLookupEnd":188.69999980926514,"domainLookupStart":188.69999980926514,"fetchStart":188.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":188.69999980926514,"responseEnd":541,"responseStart":541,"secureConnectionStart":188.69999980926514},{"duration":673.6999998092651,"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":188.89999961853027,"connectEnd":188.89999961853027,"connectStart":188.89999961853027,"domainLookupEnd":188.89999961853027,"domainLookupStart":188.89999961853027,"fetchStart":188.89999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":188.89999961853027,"responseEnd":862.5999994277954,"responseStart":862.5999994277954,"secureConnectionStart":188.89999961853027},{"duration":702.5999994277954,"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":189,"connectEnd":189,"connectStart":189,"domainLookupEnd":189,"domainLookupStart":189,"fetchStart":189,"redirectEnd":0,"redirectStart":0,"requestStart":189,"responseEnd":891.5999994277954,"responseStart":891.5999994277954,"secureConnectionStart":189},{"duration":696.7000007629395,"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":196.29999923706055,"connectEnd":196.29999923706055,"connectStart":196.29999923706055,"domainLookupEnd":196.29999923706055,"domainLookupStart":196.29999923706055,"fetchStart":196.29999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":196.29999923706055,"responseEnd":893,"responseStart":893,"secureConnectionStart":196.29999923706055},{"duration":698.8000001907349,"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":196.5999994277954,"connectEnd":196.5999994277954,"connectStart":196.5999994277954,"domainLookupEnd":196.5999994277954,"domainLookupStart":196.5999994277954,"fetchStart":196.5999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":196.5999994277954,"responseEnd":895.3999996185303,"responseStart":895.3999996185303,"secureConnectionStart":196.5999994277954},{"duration":700.6000003814697,"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":196.79999923706055,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":196.79999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":897.3999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":702.3000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":196.89999961853027,"connectEnd":196.89999961853027,"connectStart":196.89999961853027,"domainLookupEnd":196.89999961853027,"domainLookupStart":196.89999961853027,"fetchStart":196.89999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":196.89999961853027,"responseEnd":899.1999998092651,"responseStart":899.1999998092651,"secureConnectionStart":196.89999961853027},{"duration":704.5,"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":197.0999994277954,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":197.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":901.5999994277954,"responseStart":0,"secureConnectionStart":0},{"duration":705.1999998092651,"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":197.19999980926514,"connectEnd":197.19999980926514,"connectStart":197.19999980926514,"domainLookupEnd":197.19999980926514,"domainLookupStart":197.19999980926514,"fetchStart":197.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":197.19999980926514,"responseEnd":902.3999996185303,"responseStart":902.3999996185303,"secureConnectionStart":197.19999980926514},{"duration":733.8000001907349,"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":198.29999923706055,"connectEnd":198.29999923706055,"connectStart":198.29999923706055,"domainLookupEnd":198.29999923706055,"domainLookupStart":198.29999923706055,"fetchStart":198.29999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":198.29999923706055,"responseEnd":932.0999994277954,"responseStart":932.0999994277954,"secureConnectionStart":198.29999923706055},{"duration":1011.3000001907349,"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":198.39999961853027,"connectEnd":198.39999961853027,"connectStart":198.39999961853027,"domainLookupEnd":198.39999961853027,"domainLookupStart":198.39999961853027,"fetchStart":198.39999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":198.39999961853027,"responseEnd":1209.6999998092651,"responseStart":1209.6999998092651,"secureConnectionStart":198.39999961853027},{"duration":176.39999961853027,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":741.5,"connectEnd":741.5,"connectStart":741.5,"domainLookupEnd":741.5,"domainLookupStart":741.5,"fetchStart":741.5,"redirectEnd":0,"redirectStart":0,"requestStart":741.5,"responseEnd":917.8999996185303,"responseStart":917.8999996185303,"secureConnectionStart":741.5},{"duration":307.30000019073486,"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":923.7999992370605,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":923.7999992370605,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1231.0999994277954,"responseStart":0,"secureConnectionStart":0},{"duration":307,"initiatorType":"link","name":"https://jira.mariadb.org/s/50bc9be5bfead1a25e72c1a9338c94f6-CDN/lu2cib/820016/12ta74/e108c7645258ccb43280ed3404e3e949/_/download/contextbatch/css/com.atlassian.jira.plugins.jira-development-integration-plugin:0,-_super,-jira.view.issue,-jira.global,-jira.general,-jira.browse.project,-project.issue.navigator,-atl.general/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":924.2999992370605,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":924.2999992370605,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1231.2999992370605,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":36,"responseStart":182,"responseEnd":183,"domLoading":186,"domInteractive":1453,"domContentLoadedEventStart":1453,"domContentLoadedEventEnd":1515,"domComplete":2036,"loadEventStart":2036,"loadEventEnd":2036,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1434.0999994277954},{"name":"bigPipe.sidebar-id.end","time":1435},{"name":"bigPipe.activity-panel-pipe-id.start","time":1435.1999998092651},{"name":"bigPipe.activity-panel-pipe-id.end","time":1435.7999992370605},{"name":"activityTabFullyLoaded","time":1524}],"measures":[],"correlationId":"ec102f4115fb17","effectiveType":"4g","downlink":9.5,"rtt":0,"serverDuration":86,"dbReadsTimeInMs":12,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}