Type:
Bug
Priority:
Critical
Resolution:
Fixed
Affects Version/s:
N/A
Currently MERGE and underlying MyISAM tables are allowed to have different ASC/DESC attributes on corresponding indexes. It can cause wrong results, at least for ORDER BY:
create or replace table t (a int , key (a desc )) engine=MyISAM;
create or replace table tm (a int , key (a)) engine=Merge union (t);
insert into t values (1),(5),(3);
# From the underlying table -- OK
select * from t force index for order by (a) order by a;
# From the MERGE table -- not OK
select * from tm force index for order by (a) order by a;
# Cleanup
drop table tm, t;
preview-10.8-MDEV-13756-desc-indexes 49b38c82a
select * from tm force index for order by (a) order by a;
a
5
3
1
is caused by
MDEV-13756
Implement descending index: KEY (a DESC, b ASC)
Closed
There are no comments yet on this issue.
{"report":{"fcp":1549.1000003814697,"ttfb":439.90000009536743,"pageVisibility":"visible","entityId":106314,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"09ba904a-7c65-4203-9428-38b80b829328","navigationType":0,"readyForUser":1657.1000003814697,"redirectCount":0,"resourceLoadedEnd":1508.9000000953674,"resourceLoadedStart":456.5,"resourceTiming":[{"duration":266.80000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":456.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":456.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":723.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":266.7000002861023,"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":456.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":456.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":723.6000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":603.8999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":457.1000003814697,"connectEnd":457.1000003814697,"connectStart":457.1000003814697,"domainLookupEnd":457.1000003814697,"domainLookupStart":457.1000003814697,"fetchStart":457.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":724.5,"responseEnd":1061,"responseStart":736.8000001907349,"secureConnectionStart":457.1000003814697},{"duration":787.4000000953674,"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":458.2000002861023,"connectEnd":458.2000002861023,"connectStart":458.2000002861023,"domainLookupEnd":458.2000002861023,"domainLookupStart":458.2000002861023,"fetchStart":458.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":724.6000003814697,"responseEnd":1245.6000003814697,"responseStart":756.9000000953674,"secureConnectionStart":458.2000002861023},{"duration":304.2000002861023,"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":458.40000009536743,"connectEnd":458.40000009536743,"connectStart":458.40000009536743,"domainLookupEnd":458.40000009536743,"domainLookupStart":458.40000009536743,"fetchStart":458.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":726.1000003814697,"responseEnd":762.6000003814697,"responseStart":761.8000001907349,"secureConnectionStart":458.40000009536743},{"duration":419.59999990463257,"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":458.6000003814697,"connectEnd":458.6000003814697,"connectStart":458.6000003814697,"domainLookupEnd":458.6000003814697,"domainLookupStart":458.6000003814697,"fetchStart":458.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":728.2000002861023,"responseEnd":878.2000002861023,"responseStart":877.3000001907349,"secureConnectionStart":458.6000003814697},{"duration":453.80000019073486,"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":458.80000019073486,"connectEnd":458.80000019073486,"connectStart":458.80000019073486,"domainLookupEnd":458.80000019073486,"domainLookupStart":458.80000019073486,"fetchStart":458.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":729.1000003814697,"responseEnd":912.6000003814697,"responseStart":911.8000001907349,"secureConnectionStart":458.80000019073486},{"duration":269.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":458.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":458.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":728.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":293,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":459.1000003814697,"connectEnd":735.6000003814697,"connectStart":735.6000003814697,"domainLookupEnd":735.6000003814697,"domainLookupStart":735.6000003814697,"fetchStart":459.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":738.5,"responseEnd":752.1000003814697,"responseStart":750.8000001907349,"secureConnectionStart":735.6000003814697},{"duration":272.40000009536743,"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":459.2000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":459.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":731.6000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":296.30000019073486,"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":459.40000009536743,"connectEnd":459.40000009536743,"connectStart":459.40000009536743,"domainLookupEnd":459.40000009536743,"domainLookupStart":459.40000009536743,"fetchStart":459.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":739,"responseEnd":755.7000002861023,"responseStart":752.5,"secureConnectionStart":459.40000009536743},{"duration":854.3000001907349,"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":461,"connectEnd":461,"connectStart":461,"domainLookupEnd":461,"domainLookupStart":461,"fetchStart":461,"redirectEnd":0,"redirectStart":0,"requestStart":1259.1000003814697,"responseEnd":1315.3000001907349,"responseStart":1313.2000002861023,"secureConnectionStart":461},{"duration":1047.6999998092651,"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":461.2000002861023,"connectEnd":461.2000002861023,"connectStart":461.2000002861023,"domainLookupEnd":461.2000002861023,"domainLookupStart":461.2000002861023,"fetchStart":461.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":1496.8000001907349,"responseEnd":1508.9000000953674,"responseStart":1508.3000001907349,"secureConnectionStart":461.2000002861023},{"duration":284.30000019073486,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1219.8000001907349,"connectEnd":1219.8000001907349,"connectStart":1219.8000001907349,"domainLookupEnd":1219.8000001907349,"domainLookupStart":1219.8000001907349,"fetchStart":1219.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1466.1000003814697,"responseEnd":1504.1000003814697,"responseStart":1503.5,"secureConnectionStart":1219.8000001907349},{"duration":223.59999990463257,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1541.7000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1541.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1765.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":186.90000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1573.8000001907349,"connectEnd":1573.8000001907349,"connectStart":1573.8000001907349,"domainLookupEnd":1573.8000001907349,"domainLookupStart":1573.8000001907349,"fetchStart":1573.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1725.8000001907349,"responseEnd":1760.7000002861023,"responseStart":1760,"secureConnectionStart":1573.8000001907349}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":284,"responseStart":440,"responseEnd":459,"domLoading":443,"domInteractive":1796,"domContentLoadedEventStart":1796,"domContentLoadedEventEnd":1842,"domComplete":2312,"loadEventStart":2312,"loadEventEnd":2312,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1749.8000001907349},{"name":"bigPipe.sidebar-id.end","time":1750.7000002861023},{"name":"bigPipe.activity-panel-pipe-id.start","time":1750.8000001907349},{"name":"bigPipe.activity-panel-pipe-id.end","time":1751.3000001907349},{"name":"activityTabFullyLoaded","time":1853.6000003814697}],"measures":[],"correlationId":"6e7caccbd43f50","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":92,"dbReadsTimeInMs":9,"dbConnsTimeInMs":16,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}