-
New Feature
-
-
Critical
-
Resolution:
Fixed
-
-
-
Hi,
this is to report upstream feature request Bug#105911 [1] for MariaDB.
[1]: https://bugs.mysql.com/bug.php?id=105911
This FR is to add a warning when the max_sort_length limit is reached.
As shown below for 10.6.5 (same for 10.5.13), there are no warning when the limit is reached.
Many thanks for looking into this,
Jean-François Gagné
# Create a sandbox.
|
dbdeployer deploy single mariadb_10.6.5
|
|
# max_sort_length is 1024 by default.
|
./use -N <<< "show global variables like 'max_sort_length'"
|
max_sort_length 1024
|
|
# Initialize the sandbox.
|
./use <<< "
|
CREATE DATABASE test_jfg;
|
CREATE TABLE test_jfg.t (
|
id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
v VARCHAR(5000))"
|
|
# Add rows on both sides of the limit.
|
for i in 1020 1024; do
|
for j in 2 4 6 1 3 5; do ./use test_jfg <<< "INSERT INTO t(v) VALUES('$(yes | head -n $i | paste -s -d "")$j')"; done
|
done
|
|
# No warnings even if the ORDER BY is not fully honored.
|
mysql [localhost:10605] {msandbox} (test_jfg) > SELECT SUBSTRING(v, 1020) FROM t ORDER BY v;
|
+--------------------+
|
| SUBSTRING(v, 1020) |
|
+--------------------+
|
| y1 |
|
| y2 |
|
| y3 |
|
| y4 |
|
| y5 |
|
| y6 |
|
| yyyyy2 |
|
| yyyyy4 |
|
| yyyyy6 |
|
| yyyyy1 |
|
| yyyyy3 |
|
| yyyyy5 |
|
+--------------------+
|
12 rows in set (0.000 sec)
|
|
# I would expect a warning similar to this.
|
mysql [localhost:10605] {msandbox} (test_jfg) > SELECT "1a" + 2;
|
+----------+
|
| "1a" + 2 |
|
+----------+
|
| 3 |
|
+----------+
|
1 row in set, 1 warning (0.000 sec)
|
|
mysql [localhost:10605] {msandbox} (test_jfg) > show warnings;
|
+---------+------+----------------------------------------+
|
| Level | Code | Message |
|
+---------+------+----------------------------------------+
|
| Warning | 1292 | Truncated incorrect DOUBLE value: '1a' |
|
+---------+------+----------------------------------------+
|
1 row in set (0.000 sec)
|
{"report":{"fcp":951.1000000238419,"ttfb":254.30000007152557,"pageVisibility":"visible","entityId":106039,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"a0e2cd96-1ca9-4ec6-947c-f35a32801477","navigationType":0,"readyForUser":1042,"redirectCount":0,"resourceLoadedEnd":716,"resourceLoadedStart":288.39999997615814,"resourceTiming":[{"duration":177.40000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":288.39999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":288.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":465.8000000715256,"responseStart":0,"secureConnectionStart":0},{"duration":177.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":288.7000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":288.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":466.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":186.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":288.89999997615814,"connectEnd":288.89999997615814,"connectStart":288.89999997615814,"domainLookupEnd":288.89999997615814,"domainLookupStart":288.89999997615814,"fetchStart":288.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":288.89999997615814,"responseEnd":475.8000000715256,"responseStart":475.8000000715256,"secureConnectionStart":288.89999997615814},{"duration":261.2999999523163,"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":289.10000002384186,"connectEnd":289.10000002384186,"connectStart":289.10000002384186,"domainLookupEnd":289.10000002384186,"domainLookupStart":289.10000002384186,"fetchStart":289.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":289.10000002384186,"responseEnd":550.3999999761581,"responseStart":550.3999999761581,"secureConnectionStart":289.10000002384186},{"duration":264.7999999523163,"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":289.3000000715256,"connectEnd":289.3000000715256,"connectStart":289.3000000715256,"domainLookupEnd":289.3000000715256,"domainLookupStart":289.3000000715256,"fetchStart":289.3000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":289.3000000715256,"responseEnd":554.1000000238419,"responseStart":554.1000000238419,"secureConnectionStart":289.3000000715256},{"duration":265.10000002384186,"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":289.5,"connectEnd":289.5,"connectStart":289.5,"domainLookupEnd":289.5,"domainLookupStart":289.5,"fetchStart":289.5,"redirectEnd":0,"redirectStart":0,"requestStart":289.5,"responseEnd":554.6000000238419,"responseStart":554.6000000238419,"secureConnectionStart":289.5},{"duration":265.39999997615814,"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":289.7000000476837,"connectEnd":289.7000000476837,"connectStart":289.7000000476837,"domainLookupEnd":289.7000000476837,"domainLookupStart":289.7000000476837,"fetchStart":289.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":289.7000000476837,"responseEnd":555.1000000238419,"responseStart":555.1000000238419,"secureConnectionStart":289.7000000476837},{"duration":331.10000002384186,"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":289.89999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":289.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":621,"responseStart":0,"secureConnectionStart":0},{"duration":265.60000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":290,"connectEnd":290,"connectStart":290,"domainLookupEnd":290,"domainLookupStart":290,"fetchStart":290,"redirectEnd":0,"redirectStart":0,"requestStart":290,"responseEnd":555.6000000238419,"responseStart":555.6000000238419,"secureConnectionStart":290},{"duration":331,"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":290.10000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":290.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":621.1000000238419,"responseStart":0,"secureConnectionStart":0},{"duration":265.8000000715256,"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":290.39999997615814,"connectEnd":290.39999997615814,"connectStart":290.39999997615814,"domainLookupEnd":290.39999997615814,"domainLookupStart":290.39999997615814,"fetchStart":290.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":290.39999997615814,"responseEnd":556.2000000476837,"responseStart":556.2000000476837,"secureConnectionStart":290.39999997615814},{"duration":373.39999997615814,"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":291.3000000715256,"connectEnd":291.3000000715256,"connectStart":291.3000000715256,"domainLookupEnd":291.3000000715256,"domainLookupStart":291.3000000715256,"fetchStart":291.3000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":291.3000000715256,"responseEnd":664.7000000476837,"responseStart":664.7000000476837,"secureConnectionStart":291.3000000715256},{"duration":424.60000002384186,"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":291.39999997615814,"connectEnd":291.39999997615814,"connectStart":291.39999997615814,"domainLookupEnd":291.39999997615814,"domainLookupStart":291.39999997615814,"fetchStart":291.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":291.39999997615814,"responseEnd":716,"responseStart":716,"secureConnectionStart":291.39999997615814},{"duration":32.200000047683716,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":633.1000000238419,"connectEnd":633.1000000238419,"connectStart":633.1000000238419,"domainLookupEnd":633.1000000238419,"domainLookupStart":633.1000000238419,"fetchStart":633.1000000238419,"redirectEnd":0,"redirectStart":0,"requestStart":633.1000000238419,"responseEnd":665.3000000715256,"responseStart":665.3000000715256,"secureConnectionStart":633.1000000238419}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":95,"responseStart":254,"responseEnd":260,"domLoading":286,"domInteractive":1110,"domContentLoadedEventStart":1110,"domContentLoadedEventEnd":1166,"domComplete":1929,"loadEventStart":1929,"loadEventEnd":1930,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1089.5},{"name":"bigPipe.sidebar-id.end","time":1090.2000000476837},{"name":"bigPipe.activity-panel-pipe-id.start","time":1090.3999999761581},{"name":"bigPipe.activity-panel-pipe-id.end","time":1093},{"name":"activityTabFullyLoaded","time":1174}],"measures":[],"correlationId":"35283025e5f46b","effectiveType":"4g","downlink":9.4,"rtt":0,"serverDuration":92,"dbReadsTimeInMs":13,"dbConnsTimeInMs":21,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}