Type:
Task
Priority:
Major
Resolution:
Fixed
Currently DECIMAL only supports 30 decimals.
We should extend support to at least 38 decimals, to be more compatible with financial applications that depends on this limit
FLOAT and DOUBLE should still have the old limit of 30 decimals.
The change should be done so there is a minimum of notable change for old clients, except if they are using decimal fields with more than 30 decimals.
One change that is unavoidable is that decimal expressions will return results with more than 30 decimal and that if one converts a string to decimal it will have up to 38 decimals.
CREATE ... SELECT with a decimal with > 30 decimals will create a column
with a smaller range than before as we are trying to preserve the number of
decimals.
CREATE TABLE t1 SELECT 123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345;
Will change the value from:
99999999999999999999999999999999999.999999999999999999999999999999
to
99999999999999999999999999999.999999999999999999999999999999999999
includes
MDEV-6304
Controversial comparison behaviour of decimal literals with scale >30
Open
{"report":{"fcp":991.1000003814697,"ttfb":273.69999980926514,"pageVisibility":"visible","entityId":56869,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"10d50f95-350a-4944-9c56-f49d7989677a","navigationType":0,"readyForUser":1060.6999998092651,"redirectCount":0,"resourceLoadedEnd":1311.6999998092651,"resourceLoadedStart":280,"resourceTiming":[{"duration":85.39999961853027,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":280,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":280,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":365.3999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":85.5,"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":280.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":280.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":365.80000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":186.89999961853027,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":280.5,"connectEnd":280.5,"connectStart":280.5,"domainLookupEnd":280.5,"domainLookupStart":280.5,"fetchStart":280.5,"redirectEnd":0,"redirectStart":0,"requestStart":280.5,"responseEnd":467.3999996185303,"responseStart":467.3999996185303,"secureConnectionStart":280.5},{"duration":301.69999980926514,"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":280.6000003814697,"connectEnd":280.6000003814697,"connectStart":280.6000003814697,"domainLookupEnd":280.6000003814697,"domainLookupStart":280.6000003814697,"fetchStart":280.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":280.6000003814697,"responseEnd":582.3000001907349,"responseStart":582.3000001907349,"secureConnectionStart":280.6000003814697},{"duration":305.1000003814697,"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":280.8999996185303,"connectEnd":280.8999996185303,"connectStart":280.8999996185303,"domainLookupEnd":280.8999996185303,"domainLookupStart":280.8999996185303,"fetchStart":280.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":280.8999996185303,"responseEnd":586,"responseStart":586,"secureConnectionStart":280.8999996185303},{"duration":305.3999996185303,"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":281.1000003814697,"connectEnd":281.1000003814697,"connectStart":281.1000003814697,"domainLookupEnd":281.1000003814697,"domainLookupStart":281.1000003814697,"fetchStart":281.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":281.1000003814697,"responseEnd":586.5,"responseStart":586.5,"secureConnectionStart":281.1000003814697},{"duration":305.69999980926514,"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":281.19999980926514,"connectEnd":281.19999980926514,"connectStart":281.19999980926514,"domainLookupEnd":281.19999980926514,"domainLookupStart":281.19999980926514,"fetchStart":281.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":281.19999980926514,"responseEnd":586.8999996185303,"responseStart":586.8999996185303,"secureConnectionStart":281.19999980926514},{"duration":350,"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":281.3999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":281.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":631.3999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":305.8999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":281.5,"connectEnd":281.5,"connectStart":281.5,"domainLookupEnd":281.5,"domainLookupStart":281.5,"fetchStart":281.5,"redirectEnd":0,"redirectStart":0,"requestStart":281.5,"responseEnd":587.3999996185303,"responseStart":587.3999996185303,"secureConnectionStart":281.5},{"duration":349.69999980926514,"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":281.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":281.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":631.5,"responseStart":0,"secureConnectionStart":0},{"duration":306.19999980926514,"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":281.80000019073486,"connectEnd":281.80000019073486,"connectStart":281.80000019073486,"domainLookupEnd":281.80000019073486,"domainLookupStart":281.80000019073486,"fetchStart":281.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":281.80000019073486,"responseEnd":588,"responseStart":587.8999996185303,"secureConnectionStart":281.80000019073486},{"duration":718.6999998092651,"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":282.69999980926514,"connectEnd":282.69999980926514,"connectStart":282.69999980926514,"domainLookupEnd":282.69999980926514,"domainLookupStart":282.69999980926514,"fetchStart":282.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":282.69999980926514,"responseEnd":1001.3999996185303,"responseStart":1001.3999996185303,"secureConnectionStart":282.69999980926514},{"duration":1028.8999996185303,"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":282.80000019073486,"connectEnd":282.80000019073486,"connectStart":282.80000019073486,"domainLookupEnd":282.80000019073486,"domainLookupStart":282.80000019073486,"fetchStart":282.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":282.80000019073486,"responseEnd":1311.6999998092651,"responseStart":1311.6999998092651,"secureConnectionStart":282.80000019073486},{"duration":346,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":655.8999996185303,"connectEnd":655.8999996185303,"connectStart":655.8999996185303,"domainLookupEnd":655.8999996185303,"domainLookupStart":655.8999996185303,"fetchStart":655.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":655.8999996185303,"responseEnd":1001.8999996185303,"responseStart":1001.8999996185303,"secureConnectionStart":655.8999996185303},{"duration":407.69999980926514,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":974.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":974.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1382.1999998092651,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":120,"responseStart":274,"responseEnd":277,"domLoading":278,"domInteractive":1336,"domContentLoadedEventStart":1336,"domContentLoadedEventEnd":1379,"domComplete":1588,"loadEventStart":1589,"loadEventEnd":1589,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1318.1000003814697},{"name":"bigPipe.sidebar-id.end","time":1319},{"name":"bigPipe.activity-panel-pipe-id.start","time":1319.1000003814697},{"name":"bigPipe.activity-panel-pipe-id.end","time":1320.3999996185303},{"name":"activityTabFullyLoaded","time":1394.6000003814697}],"measures":[],"correlationId":"7d3e950ef86de7","effectiveType":"4g","downlink":9.7,"rtt":0,"serverDuration":99,"dbReadsTimeInMs":14,"dbConnsTimeInMs":23,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
monty, serg,
What is expected to happen upon migration from a long-decimal version of MariaDB to a non-long-decimal version (be it previous MariaDB or MySQL)?