How to repeat
On Spider:
spd.sql
|
CREATE TABLE tbl_a (
|
i INT,
|
j JSON,
|
PRIMARY KEY(i)
|
) ENGINE=SPIDER, PARTITION BY ...
|
|
INSERT INTO tbl_a VALUES (1, '{ "a": 1, "b": [2, 3]}');
|
UPDATE tbl_a SET j = JSON_REPLACE(j, '$.a', 10, '$.c', '[1, 2]');
|
When the update statement is executed, it fails with
query 'UPDATE tbl_a SET j = JSON_REPLACE(j, '$.a', 10, '$.c', '[1, 2]')' failed: 1305: FUNCTION auto_test_remote.json_update does not exist
More critically, it will make the server crash on Windows on debug mode.
Suggest fix
https://github.com/MariaDB/server/pull/1735
{"report":{"fcp":1623.9000000953674,"ttfb":715.4000000953674,"pageVisibility":"visible","entityId":95610,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"c1b347ec-af30-4622-b92a-ceeb2b6ba0a3","navigationType":0,"readyForUser":1739.9000000953674,"redirectCount":0,"resourceLoadedEnd":1798.3000001907349,"resourceLoadedStart":723.9000000953674,"resourceTiming":[{"duration":242.2000002861023,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":723.9000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":723.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":966.1000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":242.40000009536743,"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":724.2000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":724.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":966.6000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":341.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":724.3000001907349,"connectEnd":724.3000001907349,"connectStart":724.3000001907349,"domainLookupEnd":724.3000001907349,"domainLookupStart":724.3000001907349,"fetchStart":724.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":724.3000001907349,"responseEnd":1065.9000000953674,"responseStart":1065.8000001907349,"secureConnectionStart":724.3000001907349},{"duration":471.2999997138977,"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":724.6000003814697,"connectEnd":724.6000003814697,"connectStart":724.6000003814697,"domainLookupEnd":724.6000003814697,"domainLookupStart":724.6000003814697,"fetchStart":724.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":724.6000003814697,"responseEnd":1195.9000000953674,"responseStart":1195.9000000953674,"secureConnectionStart":724.6000003814697},{"duration":475.90000009536743,"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":724.9000000953674,"connectEnd":724.9000000953674,"connectStart":724.9000000953674,"domainLookupEnd":724.9000000953674,"domainLookupStart":724.9000000953674,"fetchStart":724.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":724.9000000953674,"responseEnd":1200.8000001907349,"responseStart":1200.8000001907349,"secureConnectionStart":724.9000000953674},{"duration":476.90000009536743,"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":725,"connectEnd":725,"connectStart":725,"domainLookupEnd":725,"domainLookupStart":725,"fetchStart":725,"redirectEnd":0,"redirectStart":0,"requestStart":725,"responseEnd":1201.9000000953674,"responseStart":1201.9000000953674,"secureConnectionStart":725},{"duration":477.59999990463257,"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":725.3000001907349,"connectEnd":725.3000001907349,"connectStart":725.3000001907349,"domainLookupEnd":725.3000001907349,"domainLookupStart":725.3000001907349,"fetchStart":725.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":725.3000001907349,"responseEnd":1202.9000000953674,"responseStart":1202.9000000953674,"secureConnectionStart":725.3000001907349},{"duration":506.2000002861023,"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":725.4000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":725.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1231.6000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":478.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":725.6000003814697,"connectEnd":725.6000003814697,"connectStart":725.6000003814697,"domainLookupEnd":725.6000003814697,"domainLookupStart":725.6000003814697,"fetchStart":725.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":725.6000003814697,"responseEnd":1203.8000001907349,"responseStart":1203.8000001907349,"secureConnectionStart":725.6000003814697},{"duration":506,"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":725.8000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":725.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1231.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":478.5,"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":726,"connectEnd":726,"connectStart":726,"domainLookupEnd":726,"domainLookupStart":726,"fetchStart":726,"redirectEnd":0,"redirectStart":0,"requestStart":726,"responseEnd":1204.5,"responseStart":1204.5,"secureConnectionStart":726},{"duration":947,"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":726.9000000953674,"connectEnd":726.9000000953674,"connectStart":726.9000000953674,"domainLookupEnd":726.9000000953674,"domainLookupStart":726.9000000953674,"fetchStart":726.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":726.9000000953674,"responseEnd":1673.9000000953674,"responseStart":1673.9000000953674,"secureConnectionStart":726.9000000953674},{"duration":947.9000000953674,"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":726.9000000953674,"connectEnd":726.9000000953674,"connectStart":726.9000000953674,"domainLookupEnd":726.9000000953674,"domainLookupStart":726.9000000953674,"fetchStart":726.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":726.9000000953674,"responseEnd":1674.8000001907349,"responseStart":1674.8000001907349,"secureConnectionStart":726.9000000953674},{"duration":180.80000019073486,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1256.3000001907349,"connectEnd":1256.3000001907349,"connectStart":1256.3000001907349,"domainLookupEnd":1256.3000001907349,"domainLookupStart":1256.3000001907349,"fetchStart":1256.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1256.3000001907349,"responseEnd":1437.1000003814697,"responseStart":1437.1000003814697,"secureConnectionStart":1256.3000001907349},{"duration":235.59999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":1562.7000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1562.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1798.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":113.2000002861023,"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":1563.9000000953674,"connectEnd":1563.9000000953674,"connectStart":1563.9000000953674,"domainLookupEnd":1563.9000000953674,"domainLookupStart":1563.9000000953674,"fetchStart":1563.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":1563.9000000953674,"responseEnd":1677.1000003814697,"responseStart":1677.1000003814697,"secureConnectionStart":1563.9000000953674},{"duration":123.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/097ae97cb8fbec7d6ea4bbb1f26955b9-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/js/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":1564.3000001907349,"connectEnd":1564.3000001907349,"connectStart":1564.3000001907349,"domainLookupEnd":1564.3000001907349,"domainLookupStart":1564.3000001907349,"fetchStart":1564.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1564.3000001907349,"responseEnd":1688.2000002861023,"responseStart":1688.2000002861023,"secureConnectionStart":1564.3000001907349},{"duration":250,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1616.2000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1616.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1866.2000002861023,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":555,"responseStart":716,"responseEnd":717,"domLoading":722,"domInteractive":2012,"domContentLoadedEventStart":2012,"domContentLoadedEventEnd":2083,"domComplete":2406,"loadEventStart":2406,"loadEventEnd":2406,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1899.9000000953674},{"name":"bigPipe.sidebar-id.end","time":1901.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":1901.8000001907349},{"name":"bigPipe.activity-panel-pipe-id.end","time":1908},{"name":"activityTabFullyLoaded","time":2103.800000190735}],"measures":[],"correlationId":"65a4ceb9d0ebd5","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":103,"dbReadsTimeInMs":11,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
JSON functions were introduced by 10.2.3. So, we should check 10.2 also. https://mariadb.com/kb/en/json_replace/