Add a new format for FRM ENUM/SET value list encoding:
{uint16 number of values, {uint8 length, value}* }
Add a new FRM flag, say USE_LENGTH_ENCODED_TYPELIBS, indicating that this FRM file uses the new ENUM/SET value list format.
Choose the new format when it's really needed, i.e. if the table has values with 0x00 bytes. This is for downgrade compatibility.
A few major releases later we can:
Force the new format
Remove the HEX encoding for ENUM/SET + UCS2/UTF16/UTF32, use the new format instead.
Plan B
Use HEX encoding for any ENUM/SET with 0x00 bytes, like we do for UCS2/UTF16/UTF32.
Alexander Barkov
added a comment - - edited Plan A
Add a new format for FRM ENUM/SET value list encoding:
{uint16 number of values, {uint8 length, value}* }
Add a new FRM flag, say USE_LENGTH_ENCODED_TYPELIBS, indicating that this FRM file uses the new ENUM/SET value list format.
Choose the new format when it's really needed, i.e. if the table has values with 0x00 bytes. This is for downgrade compatibility.
A few major releases later we can:
Force the new format
Remove the HEX encoding for ENUM/SET + UCS2/UTF16/UTF32, use the new format instead.
Plan B
Use HEX encoding for any ENUM/SET with 0x00 bytes, like we do for UCS2/UTF16/UTF32.
First, in line with MDEV-27771 any open frm errors from CREATE TABLE should not go into the error log. The suggested fix from MDEV-27771 will do that.
Second, we can still change the ENUM/SET storage in frm to allow such ENUMs, but I'd say it's a minor issue at best.
Sergei Golubchik
added a comment - - edited First, in line with MDEV-27771 any open frm errors from CREATE TABLE should not go into the error log. The suggested fix from MDEV-27771 will do that.
Second, we can still change the ENUM/SET storage in frm to allow such ENUMs, but I'd say it's a minor issue at best.
People
Sergei Golubchik
Roel Van de Paar
Votes:
0Vote for this issue
Watchers:
4Start watching this issue
Dates
Created:
Updated:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":795.9000000953674,"ttfb":263.40000009536743,"pageVisibility":"visible","entityId":110726,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"727ecd54-2343-4feb-abfe-a6a834e9d133","navigationType":0,"readyForUser":889.4000000953674,"redirectCount":0,"resourceLoadedEnd":681,"resourceLoadedStart":275,"resourceTiming":[{"duration":9.800000190734863,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":275,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":275,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":284.80000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":12.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":275.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":275.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":287.80000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":61.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":275.59999990463257,"connectEnd":275.59999990463257,"connectStart":275.59999990463257,"domainLookupEnd":275.59999990463257,"domainLookupStart":275.59999990463257,"fetchStart":275.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":288.7000002861023,"responseEnd":337.5,"responseStart":309,"secureConnectionStart":275.59999990463257},{"duration":76.2999997138977,"initiatorType":"script","name":"https://jira.mariadb.org/s/c32eb0da7ad9831253f8397e6cc26afd-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":276.2000002861023,"connectEnd":276.2000002861023,"connectStart":276.2000002861023,"domainLookupEnd":276.2000002861023,"domainLookupStart":276.2000002861023,"fetchStart":276.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":291.09999990463257,"responseEnd":352.5,"responseStart":327.30000019073486,"secureConnectionStart":276.2000002861023},{"duration":56.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/bc0bcb146314416123c992714ee00ff7-CDN/lu2bv2/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":276.40000009536743,"connectEnd":276.40000009536743,"connectStart":276.40000009536743,"domainLookupEnd":276.40000009536743,"domainLookupStart":276.40000009536743,"fetchStart":276.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":293.7000002861023,"responseEnd":332.59999990463257,"responseStart":332,"secureConnectionStart":276.40000009536743},{"duration":51.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":276.7000002861023,"connectEnd":312.59999990463257,"connectStart":312.59999990463257,"domainLookupEnd":312.59999990463257,"domainLookupStart":312.59999990463257,"fetchStart":276.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":313.7000002861023,"responseEnd":327.90000009536743,"responseStart":326,"secureConnectionStart":312.59999990463257},{"duration":109.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":276.90000009536743,"connectEnd":276.90000009536743,"connectStart":276.90000009536743,"domainLookupEnd":276.90000009536743,"domainLookupStart":276.90000009536743,"fetchStart":276.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":373.59999990463257,"responseEnd":386.7000002861023,"responseStart":385.30000019073486,"secureConnectionStart":276.90000009536743},{"duration":35.700000286102295,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bv2/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":277,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":277,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":312.7000002861023,"responseStart":0,"secureConnectionStart":0},{"duration":114.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":277.2000002861023,"connectEnd":277.2000002861023,"connectStart":277.2000002861023,"domainLookupEnd":277.2000002861023,"domainLookupStart":277.2000002861023,"fetchStart":277.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":377.90000009536743,"responseEnd":391.30000019073486,"responseStart":389.30000019073486,"secureConnectionStart":277.2000002861023},{"duration":198.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bv2/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":277.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":277.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":475.90000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":116.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/719848dd97ebe0663199f49a3936487a-CDN/lu2bv2/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":277.59999990463257,"connectEnd":277.59999990463257,"connectStart":277.59999990463257,"domainLookupEnd":277.59999990463257,"domainLookupStart":277.59999990463257,"fetchStart":277.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":379.09999990463257,"responseEnd":394.40000009536743,"responseStart":391.80000019073486,"secureConnectionStart":277.59999990463257},{"duration":375.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":304.90000009536743,"connectEnd":304.90000009536743,"connectStart":304.90000009536743,"domainLookupEnd":304.90000009536743,"domainLookupStart":304.90000009536743,"fetchStart":304.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":510,"responseEnd":680.8000001907349,"responseStart":676.8000001907349,"secureConnectionStart":304.90000009536743},{"duration":376.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":304.90000009536743,"connectEnd":304.90000009536743,"connectStart":304.90000009536743,"domainLookupEnd":304.90000009536743,"domainLookupStart":304.90000009536743,"fetchStart":304.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":541.0999999046326,"responseEnd":681,"responseStart":677.4000000953674,"secureConnectionStart":304.90000009536743},{"duration":157.90000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":563.8000001907349,"connectEnd":563.8000001907349,"connectStart":563.8000001907349,"domainLookupEnd":563.8000001907349,"domainLookupStart":563.8000001907349,"fetchStart":563.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":688.5999999046326,"responseEnd":721.7000002861023,"responseStart":721.0999999046326,"secureConnectionStart":563.8000001907349},{"duration":177.30000019073486,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":789.4000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":789.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":966.7000002861023,"responseStart":0,"secureConnectionStart":0},{"duration":168.10000038146973,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":813.5999999046326,"connectEnd":813.5999999046326,"connectStart":813.5999999046326,"domainLookupEnd":813.5999999046326,"domainLookupStart":813.5999999046326,"fetchStart":813.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":947.0999999046326,"responseEnd":981.7000002861023,"responseStart":981.0999999046326,"secureConnectionStart":813.5999999046326}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":99,"responseStart":264,"responseEnd":304,"domLoading":268,"domInteractive":969,"domContentLoadedEventStart":969,"domContentLoadedEventEnd":1016,"domComplete":1403,"loadEventStart":1403,"loadEventEnd":1403,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":933.9000000953674},{"name":"bigPipe.sidebar-id.end","time":934.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.start","time":934.8000001907349},{"name":"bigPipe.activity-panel-pipe-id.end","time":936.4000000953674},{"name":"activityTabFullyLoaded","time":1050.3000001907349}],"measures":[],"correlationId":"ebd7ccf647b61e","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":102,"dbReadsTimeInMs":16,"dbConnsTimeInMs":24,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Plan A
{uint16 number of values, {uint8 length, value}* }
A few major releases later we can:
Plan B
Use HEX encoding for any ENUM/SET with 0x00 bytes, like we do for UCS2/UTF16/UTF32.