MCOL-5061Selecting VIEW throws 1815. Internal error when the VIEW definition contains nested and non nested LEFT JOINS and On clause filter on the nested JOIN
Reproduced the issue in 6.4.2-1
Verified the fix in 22.08-1
MariaDB [mytest]> select * from t1 left join t2 on (t1.a = t2.a) left join t3 on (t1.b = t3.b and t2.a > 1);
+------+------+------+------+------+------+
| a | b | a | b | a | b |
+------+------+------+------+------+------+
| 1 | 3 | 1 | 2 | NULL | NULL |
| 2 | 3 | 2 | 4 | 2 | 3 |
| 3 | 4 | NULL | NULL | NULL | NULL |
+------+------+------+------+------+------+
3 rows in set (0.086 sec)
Also executed MTR test suites and verified results against MariaDB server
Daniel Lee (Inactive)
added a comment - Build verified: 22.08-1 (#5290)
Reproduced the issue in 6.4.2-1
Verified the fix in 22.08-1
MariaDB [mytest]> select * from t1 left join t2 on (t1.a = t2.a) left join t3 on (t1.b = t3.b and t2.a > 1);
+------+------+------+------+------+------+
| a | b | a | b | a | b |
+------+------+------+------+------+------+
| 1 | 3 | 1 | 2 | NULL | NULL |
| 2 | 3 | 2 | 4 | 2 | 3 |
| 3 | 4 | NULL | NULL | NULL | NULL |
+------+------+------+------+------+------+
3 rows in set (0.086 sec)
Also executed MTR test suites and verified results against MariaDB server
People
Denis Khalikov (Inactive)
alexey vorovich (Inactive)
Roman
Daniel Lee (Inactive)
Votes:
0Vote for this issue
Watchers:
4Start 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":1372.2999999523163,"ttfb":251.79999995231628,"pageVisibility":"visible","entityId":113118,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"29aa9f1e-6db1-42df-9812-99d7406d47dc","navigationType":0,"readyForUser":1444.3999999761581,"redirectCount":0,"resourceLoadedEnd":2317.100000023842,"resourceLoadedStart":260.7999999523163,"resourceTiming":[{"duration":461.3000000715256,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":260.7999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":260.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":722.1000000238419,"responseStart":0,"secureConnectionStart":0},{"duration":461.89999997615814,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":261.10000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":261.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":723,"responseStart":0,"secureConnectionStart":0},{"duration":473.3000000715256,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":261.2999999523163,"connectEnd":261.2999999523163,"connectStart":261.2999999523163,"domainLookupEnd":261.2999999523163,"domainLookupStart":261.2999999523163,"fetchStart":261.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":261.2999999523163,"responseEnd":734.6000000238419,"responseStart":734.6000000238419,"secureConnectionStart":261.2999999523163},{"duration":548.0999999046326,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":261.60000002384186,"connectEnd":261.60000002384186,"connectStart":261.60000002384186,"domainLookupEnd":261.60000002384186,"domainLookupStart":261.60000002384186,"fetchStart":261.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":261.60000002384186,"responseEnd":809.6999999284744,"responseStart":809.6999999284744,"secureConnectionStart":261.60000002384186},{"duration":552.7000000476837,"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":261.6999999284744,"connectEnd":261.6999999284744,"connectStart":261.6999999284744,"domainLookupEnd":261.6999999284744,"domainLookupStart":261.6999999284744,"fetchStart":261.6999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":261.6999999284744,"responseEnd":814.3999999761581,"responseStart":814.2999999523163,"secureConnectionStart":261.6999999284744},{"duration":552.8999999761581,"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":261.89999997615814,"connectEnd":261.89999997615814,"connectStart":261.89999997615814,"domainLookupEnd":261.89999997615814,"domainLookupStart":261.89999997615814,"fetchStart":261.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":261.89999997615814,"responseEnd":814.7999999523163,"responseStart":814.7999999523163,"secureConnectionStart":261.89999997615814},{"duration":553.0999999046326,"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":262.10000002384186,"connectEnd":262.10000002384186,"connectStart":262.10000002384186,"domainLookupEnd":262.10000002384186,"domainLookupStart":262.10000002384186,"fetchStart":262.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":262.10000002384186,"responseEnd":815.1999999284744,"responseStart":815.1999999284744,"secureConnectionStart":262.10000002384186},{"duration":636.5,"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":262.2999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":262.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":898.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":553,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":262.5,"connectEnd":262.5,"connectStart":262.5,"domainLookupEnd":262.5,"domainLookupStart":262.5,"fetchStart":262.5,"redirectEnd":0,"redirectStart":0,"requestStart":262.5,"responseEnd":815.5,"responseStart":815.5,"secureConnectionStart":262.5},{"duration":636.4000000953674,"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":262.6999999284744,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":262.6999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":899.1000000238419,"responseStart":0,"secureConnectionStart":0},{"duration":553.3000000715256,"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":262.7999999523163,"connectEnd":262.7999999523163,"connectStart":262.7999999523163,"domainLookupEnd":262.7999999523163,"domainLookupStart":262.7999999523163,"fetchStart":262.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":262.7999999523163,"responseEnd":816.1000000238419,"responseStart":816.1000000238419,"secureConnectionStart":262.7999999523163},{"duration":2047.1000000238419,"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":266.7999999523163,"connectEnd":266.7999999523163,"connectStart":266.7999999523163,"domainLookupEnd":266.7999999523163,"domainLookupStart":266.7999999523163,"fetchStart":266.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":266.7999999523163,"responseEnd":2313.899999976158,"responseStart":2313.899999976158,"secureConnectionStart":266.7999999523163},{"duration":2047.6000000238419,"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":267.7999999523163,"connectEnd":267.7999999523163,"connectStart":267.7999999523163,"domainLookupEnd":267.7999999523163,"domainLookupStart":267.7999999523163,"fetchStart":267.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":267.7999999523163,"responseEnd":2315.399999976158,"responseStart":2315.399999976158,"secureConnectionStart":267.7999999523163},{"duration":168.19999992847443,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":930.5,"connectEnd":930.5,"connectStart":930.5,"domainLookupEnd":930.5,"domainLookupStart":930.5,"fetchStart":930.5,"redirectEnd":0,"redirectStart":0,"requestStart":930.5,"responseEnd":1098.6999999284744,"responseStart":1098.6999999284744,"secureConnectionStart":930.5},{"duration":1013.3000000715256,"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","startTime":1303.7999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1303.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2317.100000023842,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":70,"responseStart":252,"responseEnd":268,"domLoading":256,"domInteractive":2362,"domContentLoadedEventStart":2362,"domContentLoadedEventEnd":2403,"domComplete":4084,"loadEventStart":4084,"loadEventEnd":4085,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2322.5},{"name":"bigPipe.sidebar-id.end","time":2323.1999999284744},{"name":"bigPipe.activity-panel-pipe-id.start","time":2323.6999999284744},{"name":"bigPipe.activity-panel-pipe-id.end","time":2325},{"name":"activityTabFullyLoaded","time":2416}],"measures":[],"correlationId":"4f21f5cd1cb8a6","effectiveType":"4g","downlink":9.4,"rtt":0,"serverDuration":109,"dbReadsTimeInMs":14,"dbConnsTimeInMs":21,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Build verified: 22.08-1 (#5290)
Reproduced the issue in 6.4.2-1
Verified the fix in 22.08-1
MariaDB [mytest]> select * from t1 left join t2 on (t1.a = t2.a) left join t3 on (t1.b = t3.b and t2.a > 1);
+------+------+------+------+------+------+
| a | b | a | b | a | b |
+------+------+------+------+------+------+
| 1 | 3 | 1 | 2 | NULL | NULL |
| 2 | 3 | 2 | 4 | 2 | 3 |
| 3 | 4 | NULL | NULL | NULL | NULL |
+------+------+------+------+------+------+
3 rows in set (0.086 sec)
Also executed MTR test suites and verified results against MariaDB server