Type:
New Feature
Priority:
Critical
Resolution:
Fixed
This is a list of trivial features for Sequence (originally mentioned as part of MDEV-13005 )
Support syntax "CREATE SEQUENCE x AS <some_int_type>';
<some_int_type> can mean all the integers that we support
Currently (as per documentation) maximum value that sequence can support is 9223372036854775806.
But unsigned bigint can have maximum (unsigned) value: 18446744073709551615
So adding support for this maximum (unsigned) value is needed.
Also, set maximum minimum based on the datatype
Allow in parser very big numbers (decimal) for MAXVALUE but change these to LONGLONG_MAX-1, with a note for the user. This is needes as it's common practice to use
MAXVALUE 9999999999999999999999999999 in Oracle examples.
Create information_schema.sequences that lists all sequences and their information. Should work similar to views:
select * from information_schema.sequences where table_schema="test";
The column names are:
SEQUENCE_CATALOG, SEQUENCE_SCHEMA, SEQUENCE_NAME, DATA_TYPE, NUMERIC_PRECISION, NUMERIC_PRECISION_RADIX, NUMERIC_SCALE, START_VALUE, MINIMUM_VALUE, MAXIMUM_VALUE, INCREMENT, CYCLE_OPTION, DECLARED_DATA_TYPE, DECLARED_NUMERIC_PRECISION, DECLARED_NUMERIC_SCALE
Some suggested values:
DATA_TYPE BIGINT
DECLARED_DATA_TYPE BIGINT
NUMERIC_PRECISION 19
NUMERIC_PRECISION_RADIX 10
DECLARED_DATA_TYPE NULL
DECLARED_NUMERIC_PRECISION NULL
DECLARED_NUMERIC_SCALE NULL
{"report":{"fcp":1971.9000000953674,"ttfb":827.5,"pageVisibility":"visible","entityId":109025,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"4c412b83-93a0-42b2-885d-f86eac487cb9","navigationType":0,"readyForUser":2052.300000190735,"redirectCount":0,"resourceLoadedEnd":2204.2000002861023,"resourceLoadedStart":832.5,"resourceTiming":[{"duration":484.40000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":832.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":832.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1316.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":484.69999980926514,"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":832.8000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":832.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1317.5,"responseStart":0,"secureConnectionStart":0},{"duration":563.7000002861023,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":833,"connectEnd":833,"connectStart":833,"domainLookupEnd":833,"domainLookupStart":833,"fetchStart":833,"redirectEnd":0,"redirectStart":0,"requestStart":833,"responseEnd":1396.7000002861023,"responseStart":1396.7000002861023,"secureConnectionStart":833},{"duration":710.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":833.2000002861023,"connectEnd":833.2000002861023,"connectStart":833.2000002861023,"domainLookupEnd":833.2000002861023,"domainLookupStart":833.2000002861023,"fetchStart":833.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":833.2000002861023,"responseEnd":1543.6000003814697,"responseStart":1543.6000003814697,"secureConnectionStart":833.2000002861023},{"duration":714.4000000953674,"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":833.3000001907349,"connectEnd":833.3000001907349,"connectStart":833.3000001907349,"domainLookupEnd":833.3000001907349,"domainLookupStart":833.3000001907349,"fetchStart":833.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":833.3000001907349,"responseEnd":1547.7000002861023,"responseStart":1547.7000002861023,"secureConnectionStart":833.3000001907349},{"duration":714.7999997138977,"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":833.6000003814697,"connectEnd":833.6000003814697,"connectStart":833.6000003814697,"domainLookupEnd":833.6000003814697,"domainLookupStart":833.6000003814697,"fetchStart":833.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":833.6000003814697,"responseEnd":1548.4000000953674,"responseStart":1548.4000000953674,"secureConnectionStart":833.6000003814697},{"duration":715.5999999046326,"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":833.8000001907349,"connectEnd":833.8000001907349,"connectStart":833.8000001907349,"domainLookupEnd":833.8000001907349,"domainLookupStart":833.8000001907349,"fetchStart":833.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":833.8000001907349,"responseEnd":1549.4000000953674,"responseStart":1549.4000000953674,"secureConnectionStart":833.8000001907349},{"duration":799.8000001907349,"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":834,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":834,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1633.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":716.9000000953674,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":834.2000002861023,"connectEnd":834.2000002861023,"connectStart":834.2000002861023,"domainLookupEnd":834.2000002861023,"domainLookupStart":834.2000002861023,"fetchStart":834.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":834.2000002861023,"responseEnd":1551.1000003814697,"responseStart":1551.1000003814697,"secureConnectionStart":834.2000002861023},{"duration":799.5999999046326,"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":834.3000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":834.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1633.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":718.4000000953674,"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":834.4000000953674,"connectEnd":834.4000000953674,"connectStart":834.4000000953674,"domainLookupEnd":834.4000000953674,"domainLookupStart":834.4000000953674,"fetchStart":834.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":834.4000000953674,"responseEnd":1552.8000001907349,"responseStart":1552.8000001907349,"secureConnectionStart":834.4000000953674},{"duration":1115.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":840.3000001907349,"connectEnd":840.3000001907349,"connectStart":840.3000001907349,"domainLookupEnd":840.3000001907349,"domainLookupStart":840.3000001907349,"fetchStart":840.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":840.3000001907349,"responseEnd":1955.6000003814697,"responseStart":1955.6000003814697,"secureConnectionStart":840.3000001907349},{"duration":1363.8000001907349,"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":840.4000000953674,"connectEnd":840.4000000953674,"connectStart":840.4000000953674,"domainLookupEnd":840.4000000953674,"domainLookupStart":840.4000000953674,"fetchStart":840.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":840.4000000953674,"responseEnd":2204.2000002861023,"responseStart":2204.2000002861023,"secureConnectionStart":840.4000000953674},{"duration":306.59999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1651.4000000953674,"connectEnd":1651.4000000953674,"connectStart":1651.4000000953674,"domainLookupEnd":1651.4000000953674,"domainLookupStart":1651.4000000953674,"fetchStart":1651.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":1651.4000000953674,"responseEnd":1958,"responseStart":1958,"secureConnectionStart":1651.4000000953674},{"duration":265.7999997138977,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1963.1000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1963.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2228.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":251.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":1986.5,"connectEnd":1986.5,"connectStart":1986.5,"domainLookupEnd":1986.5,"domainLookupStart":1986.5,"fetchStart":1986.5,"redirectEnd":0,"redirectStart":0,"requestStart":1986.5,"responseEnd":2238,"responseStart":2238,"secureConnectionStart":1986.5}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":668,"responseStart":827,"responseEnd":832,"domLoading":830,"domInteractive":2229,"domContentLoadedEventStart":2229,"domContentLoadedEventEnd":2271,"domComplete":2766,"loadEventStart":2766,"loadEventEnd":2768,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2210.4000000953674},{"name":"bigPipe.sidebar-id.end","time":2211.2000002861023},{"name":"bigPipe.activity-panel-pipe-id.start","time":2211.4000000953674},{"name":"bigPipe.activity-panel-pipe-id.end","time":2213.800000190735},{"name":"activityTabFullyLoaded","time":2319.9000000953674}],"measures":[],"correlationId":"52c9e89e0a88e8","effectiveType":"4g","downlink":9.9,"rtt":0,"serverDuration":103,"dbReadsTimeInMs":16,"dbConnsTimeInMs":25,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}