This is because mysql.column_stats.histogram is defined as
`histogram` blob DEFAULT NULL,
which has a maximum length of 64K.
If the maximum number of buckets is 255, this gives 257 bytes to represent one bucket.
In utf8mb4, this is 64 4-byte characters.
One could argue that JSON syntax parts like field names, quotes, etc. are not 4-byte characters.
Also, we wanted to truncate the values that are too long.
Still, the size limit is close enough. I don't see any arguments why we should not raise it.
Sergei Petrunia
added a comment - This is because mysql.column_stats.histogram is defined as
`histogram` blob DEFAULT NULL,
which has a maximum length of 64K.
If the maximum number of buckets is 255, this gives 257 bytes to represent one bucket.
In utf8mb4, this is 64 4-byte characters.
One could argue that JSON syntax parts like field names, quotes, etc. are not 4-byte characters.
Also, we wanted to truncate the values that are too long.
Still, the size limit is close enough. I don't see any arguments why we should not raise it.
People
Sergei Petrunia
Elena Stepanova
Votes:
0Vote for this issue
Watchers:
2Start watching this issue
Dates
Created:
Updated:
Resolved:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":1021.7000000476837,"ttfb":257.80000001192093,"pageVisibility":"visible","entityId":103402,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"97d98621-25f0-4471-90f2-ccaff5bcd53a","navigationType":0,"readyForUser":1103.6000000238419,"redirectCount":0,"resourceLoadedEnd":742.1000000238419,"resourceLoadedStart":266.2000000476837,"resourceTiming":[{"duration":176.29999995231628,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":266.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":266.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":442.5,"responseStart":0,"secureConnectionStart":0},{"duration":178.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":266.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":266.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":445,"responseStart":0,"secureConnectionStart":0},{"duration":349.9000000357628,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":266.80000001192093,"connectEnd":266.80000001192093,"connectStart":266.80000001192093,"domainLookupEnd":266.80000001192093,"domainLookupStart":266.80000001192093,"fetchStart":266.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":450.4000000357628,"responseEnd":616.7000000476837,"responseStart":502.10000002384186,"secureConnectionStart":266.80000001192093},{"duration":475.19999998807907,"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":266.9000000357628,"connectEnd":266.9000000357628,"connectStart":266.9000000357628,"domainLookupEnd":266.9000000357628,"domainLookupStart":266.9000000357628,"fetchStart":266.9000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":450.60000002384186,"responseEnd":742.1000000238419,"responseStart":509.7000000476837,"secureConnectionStart":266.9000000357628},{"duration":247.69999998807907,"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":267.10000002384186,"connectEnd":267.10000002384186,"connectStart":267.10000002384186,"domainLookupEnd":267.10000002384186,"domainLookupStart":267.10000002384186,"fetchStart":267.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":458.10000002384186,"responseEnd":514.8000000119209,"responseStart":511.4000000357628,"secureConnectionStart":267.10000002384186},{"duration":245.5999999642372,"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":267.4000000357628,"connectEnd":267.4000000357628,"connectStart":267.4000000357628,"domainLookupEnd":267.4000000357628,"domainLookupStart":267.4000000357628,"fetchStart":267.4000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":460.2000000476837,"responseEnd":513,"responseStart":490.7000000476837,"secureConnectionStart":267.4000000357628},{"duration":224.80000001192093,"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":267.60000002384186,"connectEnd":267.60000002384186,"connectStart":267.60000002384186,"domainLookupEnd":267.60000002384186,"domainLookupStart":267.60000002384186,"fetchStart":267.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":460.9000000357628,"responseEnd":492.4000000357628,"responseStart":490,"secureConnectionStart":267.60000002384186},{"duration":190,"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":268.10000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":268.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":458.10000002384186,"responseStart":0,"secureConnectionStart":0},{"duration":246.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":268.4000000357628,"connectEnd":268.4000000357628,"connectStart":268.4000000357628,"domainLookupEnd":268.4000000357628,"domainLookupStart":268.4000000357628,"fetchStart":268.4000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":461.10000002384186,"responseEnd":514.9000000357628,"responseStart":512.2000000476837,"secureConnectionStart":268.4000000357628},{"duration":190.20000004768372,"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":268.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":268.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":458.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":221.19999998807907,"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":268.7000000476837,"connectEnd":268.7000000476837,"connectStart":268.7000000476837,"domainLookupEnd":268.7000000476837,"domainLookupStart":268.7000000476837,"fetchStart":268.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":461.30000001192093,"responseEnd":489.9000000357628,"responseStart":488.30000001192093,"secureConnectionStart":268.7000000476837},{"duration":439.60000002384186,"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":272.60000002384186,"connectEnd":272.60000002384186,"connectStart":272.60000002384186,"domainLookupEnd":272.60000002384186,"domainLookupStart":272.60000002384186,"fetchStart":272.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":548.9000000357628,"responseEnd":712.2000000476837,"responseStart":703.7000000476837,"secureConnectionStart":272.60000002384186},{"duration":441.5,"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":272.60000002384186,"connectEnd":272.60000002384186,"connectStart":272.60000002384186,"domainLookupEnd":272.60000002384186,"domainLookupStart":272.60000002384186,"fetchStart":272.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":605.1000000238419,"responseEnd":714.1000000238419,"responseStart":708.1000000238419,"secureConnectionStart":272.60000002384186},{"duration":158,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":746.1000000238419,"connectEnd":746.1000000238419,"connectStart":746.1000000238419,"domainLookupEnd":746.1000000238419,"domainLookupStart":746.1000000238419,"fetchStart":746.1000000238419,"redirectEnd":0,"redirectStart":0,"requestStart":869.3000000119209,"responseEnd":904.1000000238419,"responseStart":903.1000000238419,"secureConnectionStart":746.1000000238419}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":77,"responseStart":257,"responseEnd":263,"domLoading":262,"domInteractive":1199,"domContentLoadedEventStart":1199,"domContentLoadedEventEnd":1255,"domComplete":1673,"loadEventStart":1673,"loadEventEnd":1674,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1179.6000000238419},{"name":"bigPipe.sidebar-id.end","time":1180.4000000357628},{"name":"bigPipe.activity-panel-pipe-id.start","time":1180.6000000238419},{"name":"bigPipe.activity-panel-pipe-id.end","time":1181.6000000238419},{"name":"activityTabFullyLoaded","time":1269.1000000238419}],"measures":[],"correlationId":"6151d92bed246c","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":97,"dbReadsTimeInMs":12,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
This is because mysql.column_stats.histogram is defined as
`histogram` blob DEFAULT NULL,
which has a maximum length of 64K.
If the maximum number of buckets is 255, this gives 257 bytes to represent one bucket.
In utf8mb4, this is 64 4-byte characters.
One could argue that JSON syntax parts like field names, quotes, etc. are not 4-byte characters.
Also, we wanted to truncate the values that are too long.
Still, the size limit is close enough. I don't see any arguments why we should not raise it.