Type:
New Feature
Priority:
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)
Oleg Smirnov
made changes -
2023-08-01 14:42
Field
Original Value
New Value
Assignee
Oleg Smirnov
[ JIRAUSER50405
]
Oleg Smirnov
made changes -
2023-08-02 06:11
Affects Version/s
10.5.13
[ 26026
]
Affects Version/s
10.6.5
[ 26034
]
Issue Type
Bug
[ 1
]
Task
[ 3
]
Sergei Golubchik
made changes -
2023-08-18 10:33
Priority
Minor
[ 4
]
Major
[ 3
]
Oleg Smirnov
made changes -
2023-08-29 05:28
Status
Open
[ 1
]
In Progress
[ 3
]
Oleg Smirnov
made changes -
2023-09-05 12:12
Assignee
Oleg Smirnov
[ JIRAUSER50405
]
Sergei Petrunia
[ psergey
]
Status
In Progress
[ 3
]
In Review
[ 10002
]
Sergei Golubchik
made changes -
2023-09-17 18:03
Fix Version/s
11.4
[ 29301
]
Fix Version/s
11.3
[ 28565
]
Sergei Golubchik
made changes -
2023-12-22 17:46
Fix Version/s
11.5
[ 29506
]
Fix Version/s
11.4
[ 29301
]
Sergei Golubchik
made changes -
2024-03-19 18:33
Fix Version/s
11.6
[ 29515
]
Fix Version/s
11.5
[ 29506
]
Ralf Gebhardt
made changes -
2024-06-21 10:14
Issue Type
Task
[ 3
]
New Feature
[ 2
]
Ralf Gebhardt
made changes -
2024-06-21 10:17
Fix Version/s
11.7
[ 29815
]
Fix Version/s
11.6
[ 29515
]
Oleg Smirnov
made changes -
2024-06-21 14:06
Assignee
Sergei Petrunia
[ psergey
]
Michael Widenius
[ monty
]
Alexander Barkov
made changes -
2024-08-16 19:24
Assignee
Michael Widenius
[ monty
]
Alexander Barkov
[ bar
]
Alexander Barkov
made changes -
2024-08-27 08:51
Status
In Review
[ 10002
]
Stalled
[ 10000
]
Alexander Barkov
made changes -
2024-08-27 08:51
Assignee
Alexander Barkov
[ bar
]
Oleg Smirnov
[ JIRAUSER50405
]
Oleg Smirnov
made changes -
2024-08-28 10:46
Status
Stalled
[ 10000
]
In Testing
[ 10301
]
Oleg Smirnov
made changes -
2024-09-03 09:29
Assignee
Oleg Smirnov
[ JIRAUSER50405
]
Lena Startseva
[ JIRAUSER50478
]
Sergei Golubchik
made changes -
2024-09-10 11:46
Priority
Major
[ 3
]
Critical
[ 2
]
Sergei Golubchik
made changes -
2024-09-16 21:30
Link
This issue is part of TODO-4907
[ TODO-4907
]
Lena Startseva
made changes -
2024-10-22 07:38
Assignee
Lena Startseva
[ JIRAUSER50478
]
Oleg Smirnov
[ JIRAUSER50405
]
Status
In Testing
[ 10301
]
Stalled
[ 10000
]
Oleg Smirnov
made changes -
2024-10-23 05:01
Fix Version/s
11.7.1
[ 29913
]
Fix Version/s
11.7
[ 29815
]
Resolution
Fixed
[ 1
]
Status
Stalled
[ 10000
]
Closed
[ 6
]
{"report":{"fcp":1268.5,"ttfb":457.5,"pageVisibility":"visible","entityId":106039,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":32,"apdex":0.5,"journeyId":"75724ac6-a754-4645-94a6-74d979c77ee8","navigationType":0,"readyForUser":1360.9000000953674,"redirectCount":0,"resourceLoadedEnd":2125,"resourceLoadedStart":471.69999980926514,"resourceTiming":[{"duration":300.7000002861023,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":471.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":471.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":772.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":300.69999980926514,"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":472,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":472,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":772.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":309.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":472.19999980926514,"connectEnd":472.19999980926514,"connectStart":472.19999980926514,"domainLookupEnd":472.19999980926514,"domainLookupStart":472.19999980926514,"fetchStart":472.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":472.19999980926514,"responseEnd":781.5,"responseStart":781.5,"secureConnectionStart":472.19999980926514},{"duration":362.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":472.40000009536743,"connectEnd":472.40000009536743,"connectStart":472.40000009536743,"domainLookupEnd":472.40000009536743,"domainLookupStart":472.40000009536743,"fetchStart":472.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":472.40000009536743,"responseEnd":834.6999998092651,"responseStart":834.6999998092651,"secureConnectionStart":472.40000009536743},{"duration":366.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":472.59999990463257,"connectEnd":472.59999990463257,"connectStart":472.59999990463257,"domainLookupEnd":472.59999990463257,"domainLookupStart":472.59999990463257,"fetchStart":472.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":472.59999990463257,"responseEnd":838.7999997138977,"responseStart":838.7999997138977,"secureConnectionStart":472.59999990463257},{"duration":366.40000009536743,"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":472.7999997138977,"connectEnd":472.7999997138977,"connectStart":472.7999997138977,"domainLookupEnd":472.7999997138977,"domainLookupStart":472.7999997138977,"fetchStart":472.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":472.7999997138977,"responseEnd":839.1999998092651,"responseStart":839.1999998092651,"secureConnectionStart":472.7999997138977},{"duration":366.69999980926514,"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":472.90000009536743,"connectEnd":472.90000009536743,"connectStart":472.90000009536743,"domainLookupEnd":472.90000009536743,"domainLookupStart":472.90000009536743,"fetchStart":472.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":472.90000009536743,"responseEnd":839.5999999046326,"responseStart":839.5999999046326,"secureConnectionStart":472.90000009536743},{"duration":455,"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":473.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":473.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":928.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":366.7000002861023,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":473.2999997138977,"connectEnd":473.2999997138977,"connectStart":473.2999997138977,"domainLookupEnd":473.2999997138977,"domainLookupStart":473.2999997138977,"fetchStart":473.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":473.2999997138977,"responseEnd":840,"responseStart":840,"secureConnectionStart":473.2999997138977},{"duration":454.7999997138977,"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":473.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":473.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":928.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":367.09999990463257,"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":473.5,"connectEnd":473.5,"connectStart":473.5,"domainLookupEnd":473.5,"domainLookupStart":473.5,"fetchStart":473.5,"redirectEnd":0,"redirectStart":0,"requestStart":473.5,"responseEnd":840.5999999046326,"responseStart":840.5999999046326,"secureConnectionStart":473.5},{"duration":1643.0999999046326,"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":479.90000009536743,"connectEnd":479.90000009536743,"connectStart":479.90000009536743,"domainLookupEnd":479.90000009536743,"domainLookupStart":479.90000009536743,"fetchStart":479.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":479.90000009536743,"responseEnd":2123,"responseStart":2123,"secureConnectionStart":479.90000009536743},{"duration":1603.7000002861023,"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":521.2999997138977,"connectEnd":521.2999997138977,"connectStart":521.2999997138977,"domainLookupEnd":521.2999997138977,"domainLookupStart":521.2999997138977,"fetchStart":521.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":521.2999997138977,"responseEnd":2125,"responseStart":2125,"secureConnectionStart":521.2999997138977},{"duration":1182,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":941.4000000953674,"connectEnd":941.4000000953674,"connectStart":941.4000000953674,"domainLookupEnd":941.4000000953674,"domainLookupStart":941.4000000953674,"fetchStart":941.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":941.4000000953674,"responseEnd":2123.4000000953674,"responseStart":2123.4000000953674,"secureConnectionStart":941.4000000953674},{"duration":883,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1260.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1260.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2143.5,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":176,"responseStart":458,"responseEnd":520,"domLoading":470,"domInteractive":2192,"domContentLoadedEventStart":2192,"domContentLoadedEventEnd":2249,"domComplete":2727,"loadEventStart":2727,"loadEventEnd":2727,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2152.5},{"name":"bigPipe.sidebar-id.end","time":2153.4000000953674},{"name":"bigPipe.activity-panel-pipe-id.start","time":2153.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":2164.2999997138977},{"name":"activityTabFullyLoaded","time":2284.5}],"measures":[],"correlationId":"3f0e32647ca974","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":185,"dbReadsTimeInMs":37,"dbConnsTimeInMs":48,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
psergei can you please review bb-11.3-mdev-27277?