-
Bug
-
-
Critical
-
Resolution:
Fixed
-
10.3(EOL), 10.4(EOL), 10.5, 10.6, 10.7(EOL), 10.8(EOL), 10.9(EOL)
-
-
-
Table Elimination works wrong for the view. Ex:
(EDIT : Table Elimination doesn't have anything to do with this bug)
Test:
CREATE TABLE t1 (
|
PostID int(10) unsigned NOT NULL
|
) DEFAULT CHARSET=utf8;
|
|
INSERT INTO t1 (PostID) VALUES (1), (2);
|
|
CREATE TABLE t2 (
|
VoteID int(10) unsigned NOT NULL PRIMARY KEY AUTO_INCREMENT,
|
EntityID int(10) unsigned NOT NULL,
|
UserID int(10) unsigned NOT NULL,
|
UNIQUE KEY EntityID (EntityID,UserID)
|
) DEFAULT CHARSET=utf8;
|
|
INSERT INTO t2 (EntityID, UserID) VALUES (1, 30), (2, 30);
|
|
CREATE VIEW v1 as SELECT t1.*, T.Voted as Voted
|
FROM
|
t1 LEFT JOIN (
|
SELECT 1 AS Voted, EntityID
|
FROM t2
|
WHERE t2.UserID = '20' ) AS T
|
ON T.EntityID = t1.PostID
|
WHERE t1.PostID='1'
|
LIMIT 1;
|
SELECT * FROM v1;
|
|
DROP VIEW v1;
|
DROP TABLE t1,t2;
|
Actual result:
Expected result:
{"report":{"fcp":782.3999998569489,"ttfb":143.89999985694885,"pageVisibility":"visible","entityId":111096,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"3c4cdb21-6f0a-4e3c-9c0b-250c8b0f3a25","navigationType":0,"readyForUser":845.8999998569489,"redirectCount":0,"resourceLoadedEnd":1253.3999998569489,"resourceLoadedStart":150.59999990463257,"resourceTiming":[{"duration":185.79999995231628,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":150.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":150.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":336.39999985694885,"responseStart":0,"secureConnectionStart":0},{"duration":185.70000004768372,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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","startTime":150.79999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":150.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":336.5,"responseStart":0,"secureConnectionStart":0},{"duration":224.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":150.89999985694885,"connectEnd":150.89999985694885,"connectStart":150.89999985694885,"domainLookupEnd":150.89999985694885,"domainLookupStart":150.89999985694885,"fetchStart":150.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":150.89999985694885,"responseEnd":375.7999999523163,"responseStart":375.7999999523163,"secureConnectionStart":150.89999985694885},{"duration":270.7999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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","startTime":151,"connectEnd":151,"connectStart":151,"domainLookupEnd":151,"domainLookupStart":151,"fetchStart":151,"redirectEnd":0,"redirectStart":0,"requestStart":151,"responseEnd":421.7999999523163,"responseStart":421.7999999523163,"secureConnectionStart":151},{"duration":274.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":151.09999990463257,"connectEnd":151.09999990463257,"connectStart":151.09999990463257,"domainLookupEnd":151.09999990463257,"domainLookupStart":151.09999990463257,"fetchStart":151.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":151.09999990463257,"responseEnd":425.5,"responseStart":425.5,"secureConnectionStart":151.09999990463257},{"duration":274.7999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":151.20000004768372,"connectEnd":151.20000004768372,"connectStart":151.20000004768372,"domainLookupEnd":151.20000004768372,"domainLookupStart":151.20000004768372,"fetchStart":151.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":151.20000004768372,"responseEnd":426,"responseStart":426,"secureConnectionStart":151.20000004768372},{"duration":275.60000014305115,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":151.39999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":151.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":427,"responseStart":0,"secureConnectionStart":0},{"duration":275.10000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":151.39999985694885,"connectEnd":151.39999985694885,"connectStart":151.39999985694885,"domainLookupEnd":151.39999985694885,"domainLookupStart":151.39999985694885,"fetchStart":151.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":151.39999985694885,"responseEnd":426.5,"responseStart":426.5,"secureConnectionStart":151.39999985694885},{"duration":275.39999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":151.5,"connectEnd":151.5,"connectStart":151.5,"domainLookupEnd":151.5,"domainLookupStart":151.5,"fetchStart":151.5,"redirectEnd":0,"redirectStart":0,"requestStart":151.5,"responseEnd":426.89999985694885,"responseStart":426.89999985694885,"secureConnectionStart":151.5},{"duration":275.90000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/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":151.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":151.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":427.5,"responseStart":0,"secureConnectionStart":0},{"duration":275.89999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/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":151.70000004768372,"connectEnd":151.70000004768372,"connectStart":151.70000004768372,"domainLookupEnd":151.70000004768372,"domainLookupStart":151.70000004768372,"fetchStart":151.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":151.70000004768372,"responseEnd":427.59999990463257,"responseStart":427.59999990463257,"secureConnectionStart":151.70000004768372},{"duration":935.4000000953674,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":152.59999990463257,"connectEnd":152.59999990463257,"connectStart":152.59999990463257,"domainLookupEnd":152.59999990463257,"domainLookupStart":152.59999990463257,"fetchStart":152.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":152.59999990463257,"responseEnd":1088,"responseStart":1088,"secureConnectionStart":152.59999990463257},{"duration":1100.7999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":152.59999990463257,"connectEnd":152.59999990463257,"connectStart":152.59999990463257,"domainLookupEnd":152.59999990463257,"domainLookupStart":152.59999990463257,"fetchStart":152.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":152.59999990463257,"responseEnd":1253.3999998569489,"responseStart":1253.3999998569489,"secureConnectionStart":152.59999990463257},{"duration":654.4000000953674,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":590.3999998569489,"connectEnd":590.3999998569489,"connectStart":590.3999998569489,"domainLookupEnd":590.3999998569489,"domainLookupStart":590.3999998569489,"fetchStart":590.3999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":590.3999998569489,"responseEnd":1244.7999999523163,"responseStart":1244.7999999523163,"secureConnectionStart":590.3999998569489}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":14,"responseStart":143,"responseEnd":147,"domLoading":147,"domInteractive":1273,"domContentLoadedEventStart":1273,"domContentLoadedEventEnd":1308,"domComplete":1852,"loadEventStart":1852,"loadEventEnd":1853,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1255.2999999523163},{"name":"bigPipe.sidebar-id.end","time":1256.0999999046326},{"name":"bigPipe.activity-panel-pipe-id.start","time":1256.2999999523163},{"name":"bigPipe.activity-panel-pipe-id.end","time":1258.5999999046326},{"name":"activityTabFullyLoaded","time":1314.5}],"measures":[],"correlationId":"b387b5a608f58e","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":75,"dbReadsTimeInMs":12,"dbConnsTimeInMs":19,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}