Since 10.3.29-1, MariaDb is not able to complete correctly LEFT JOIN in SUBQUERY that have multiple ON clause columns coming from different tables.
The only way to make it works is to substitute all INNER JOIN with the "STRAIGHT_JOIN" on all tables that have the columns needed by "ON clause" of the LEFT JOIN , this will fix results but on large datasets will take likely 30 - 40 seconds instead of few microseconds.
So the only way it works back again is to downgrade to 10.3.28.
I have to said that this is really disappointing: this is likely the 3rd critical bug in less than 1 year.
APPs suddenly stop to works and it tooks hours to understand that the issue is not the query itself but instead the latest MariaDb's update.
This is becoming really too much frequent.
- relates to
-
MDEV-25714
Join using derived with aggregation returns incorrect results
-
-
Closed
{"report":{"fcp":989.0999999046326,"ttfb":207.29999995231628,"pageVisibility":"visible","entityId":99769,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"8540d443-dfdd-4fb0-b176-265317bab449","navigationType":0,"readyForUser":1041.0999999046326,"redirectCount":0,"resourceLoadedEnd":917.7999999523163,"resourceLoadedStart":212.5,"resourceTiming":[{"duration":271.2999999523163,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":212.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":212.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":483.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":271.5,"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":212.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":212.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":484.19999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":322.7000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":212.89999985694885,"connectEnd":212.89999985694885,"connectStart":212.89999985694885,"domainLookupEnd":212.89999985694885,"domainLookupStart":212.89999985694885,"fetchStart":212.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":212.89999985694885,"responseEnd":535.5999999046326,"responseStart":535.5999999046326,"secureConnectionStart":212.89999985694885},{"duration":383.59999990463257,"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":213,"connectEnd":213,"connectStart":213,"domainLookupEnd":213,"domainLookupStart":213,"fetchStart":213,"redirectEnd":0,"redirectStart":0,"requestStart":213,"responseEnd":596.5999999046326,"responseStart":596.5999999046326,"secureConnectionStart":213},{"duration":380.09999990463257,"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":213,"connectEnd":213,"connectStart":213,"domainLookupEnd":213,"domainLookupStart":213,"fetchStart":213,"redirectEnd":0,"redirectStart":0,"requestStart":213,"responseEnd":593.0999999046326,"responseStart":593.0999999046326,"secureConnectionStart":213},{"duration":384,"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":213.09999990463257,"connectEnd":213.09999990463257,"connectStart":213.09999990463257,"domainLookupEnd":213.09999990463257,"domainLookupStart":213.09999990463257,"fetchStart":213.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":213.09999990463257,"responseEnd":597.0999999046326,"responseStart":597.0999999046326,"secureConnectionStart":213.09999990463257},{"duration":384.2000000476837,"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":213.29999995231628,"connectEnd":213.29999995231628,"connectStart":213.29999995231628,"domainLookupEnd":213.29999995231628,"domainLookupStart":213.29999995231628,"fetchStart":213.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":213.29999995231628,"responseEnd":597.5,"responseStart":597.5,"secureConnectionStart":213.29999995231628},{"duration":384.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":213.39999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":213.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":598,"responseStart":0,"secureConnectionStart":0},{"duration":384.60000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":213.39999985694885,"connectEnd":213.39999985694885,"connectStart":213.39999985694885,"domainLookupEnd":213.39999985694885,"domainLookupStart":213.39999985694885,"fetchStart":213.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":213.39999985694885,"responseEnd":598,"responseStart":598,"secureConnectionStart":213.39999985694885},{"duration":384.89999985694885,"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":213.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":213.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":598.3999998569489,"responseStart":0,"secureConnectionStart":0},{"duration":384.90000009536743,"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":213.69999980926514,"connectEnd":213.69999980926514,"connectStart":213.69999980926514,"domainLookupEnd":213.69999980926514,"domainLookupStart":213.69999980926514,"fetchStart":213.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":213.69999980926514,"responseEnd":598.5999999046326,"responseStart":598.5999999046326,"secureConnectionStart":213.69999980926514},{"duration":703,"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":214.39999985694885,"connectEnd":214.39999985694885,"connectStart":214.39999985694885,"domainLookupEnd":214.39999985694885,"domainLookupStart":214.39999985694885,"fetchStart":214.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":214.39999985694885,"responseEnd":917.3999998569489,"responseStart":917.3999998569489,"secureConnectionStart":214.39999985694885},{"duration":703.4000000953674,"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":214.39999985694885,"connectEnd":214.39999985694885,"connectStart":214.39999985694885,"domainLookupEnd":214.39999985694885,"domainLookupStart":214.39999985694885,"fetchStart":214.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":214.39999985694885,"responseEnd":917.7999999523163,"responseStart":917.7999999523163,"secureConnectionStart":214.39999985694885},{"duration":149.40000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":745.1999998092651,"connectEnd":745.1999998092651,"connectStart":745.1999998092651,"domainLookupEnd":745.1999998092651,"domainLookupStart":745.1999998092651,"fetchStart":745.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":745.1999998092651,"responseEnd":894.5999999046326,"responseStart":894.5999999046326,"secureConnectionStart":745.1999998092651}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":90,"responseStart":207,"responseEnd":209,"domLoading":210,"domInteractive":1087,"domContentLoadedEventStart":1087,"domContentLoadedEventEnd":1123,"domComplete":1712,"loadEventStart":1712,"loadEventEnd":1713,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1070.2999999523163},{"name":"bigPipe.sidebar-id.end","time":1071},{"name":"bigPipe.activity-panel-pipe-id.start","time":1071.0999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":1073.6999998092651},{"name":"activityTabFullyLoaded","time":1129.7999999523163}],"measures":[],"correlationId":"c9789e65971130","effectiveType":"4g","downlink":9.6,"rtt":0,"serverDuration":72,"dbReadsTimeInMs":13,"dbConnsTimeInMs":21,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}