-
Bug
-
-
Major
-
Resolution:
Fixed
-
N/A
-
-
-
This works and expectedly returns NULL without any errors or warnings (as the implicit behavior is NULL ON ERROR):
bb-10.6-mdev17399-hf 8611fb30b
|
MariaDB [test]> SELECT * FROM JSON_TABLE('{"x":1}', '$' COLUMNS(f DATE PATH '$.*')) AS jt;
|
+------+
|
| f |
|
+------+
|
| NULL |
|
+------+
|
1 row in set (0.001 sec)
|
However, this fails, even though there isn't, and cannot be, an incorrect value as it should already be NULL-ed by JSON_TABLE:
MariaDB [test]> CREATE TABLE t AS SELECT * FROM JSON_TABLE('{"x":1}', '$' COLUMNS(f DATE PATH '$.*')) AS jt;
|
ERROR 1292 (22007): Incorrect date value: '1' for column ``.`(temporary)`.`f` at row 1
|
Same happens even with an explicit NULL ON ERROR:
MariaDB [test]> CREATE TABLE t AS SELECT * FROM JSON_TABLE('{"x":1}', '$' COLUMNS(f DATE PATH '$.*' NULL ON ERROR)) AS jt;
|
ERROR 1292 (22007): Incorrect date value: '1' for column ``.`(temporary)`.`f` at row 1
|
In MySQL 8.0 it works:
MySQL 8.0.23
|
MySQL [test]> CREATE TABLE t AS SELECT * FROM JSON_TABLE('{"x":1}', '$' COLUMNS(f DATE PATH '$.*' )) AS jt;
|
Query OK, 1 row affected (0.130 sec)
|
Records: 1 Duplicates: 0 Warnings: 0
|
- relates to
-
MDEV-17399
Add support for JSON_TABLE
-
-
Closed
There are no comments yet on this issue.
{"report":{"fcp":3719.5999999046326,"ttfb":773.0999999046326,"pageVisibility":"visible","entityId":98279,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"ef9fdebd-b213-467e-bb08-78ebf08945c7","navigationType":0,"readyForUser":3692.199999809265,"redirectCount":0,"resourceLoadedEnd":2880.300000190735,"resourceLoadedStart":846.5,"resourceTiming":[{"duration":464,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":846.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":846.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1310.5,"responseStart":0,"secureConnectionStart":0},{"duration":466.19999980926514,"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":846.8000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":846.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1313,"responseStart":0,"secureConnectionStart":0},{"duration":1739.3000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":847,"connectEnd":847,"connectStart":847,"domainLookupEnd":847,"domainLookupStart":847,"fetchStart":847,"redirectEnd":0,"redirectStart":0,"requestStart":1339.5,"responseEnd":2586.300000190735,"responseStart":1695.3000001907349,"secureConnectionStart":847},{"duration":2033.2000002861023,"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":847.0999999046326,"connectEnd":847.0999999046326,"connectStart":847.0999999046326,"domainLookupEnd":847.0999999046326,"domainLookupStart":847.0999999046326,"fetchStart":847.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":1339.5999999046326,"responseEnd":2880.300000190735,"responseStart":1797.5999999046326,"secureConnectionStart":847.0999999046326},{"duration":1010.0999999046326,"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":847.3000001907349,"connectEnd":847.3000001907349,"connectStart":847.3000001907349,"domainLookupEnd":847.3000001907349,"domainLookupStart":847.3000001907349,"fetchStart":847.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1339.6999998092651,"responseEnd":1857.4000000953674,"responseStart":1800.9000000953674,"secureConnectionStart":847.3000001907349},{"duration":1010.6999998092651,"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":847.5,"connectEnd":847.5,"connectStart":847.5,"domainLookupEnd":847.5,"domainLookupStart":847.5,"fetchStart":847.5,"redirectEnd":0,"redirectStart":0,"requestStart":1340.0999999046326,"responseEnd":1858.1999998092651,"responseStart":1848,"secureConnectionStart":847.5},{"duration":1010.6000003814697,"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":847.6999998092651,"connectEnd":847.6999998092651,"connectStart":847.6999998092651,"domainLookupEnd":847.6999998092651,"domainLookupStart":847.6999998092651,"fetchStart":847.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":1340.5,"responseEnd":1858.3000001907349,"responseStart":1849,"secureConnectionStart":847.6999998092651},{"duration":470,"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":847.9000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":847.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1317.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":1018.8000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":848.1999998092651,"connectEnd":848.1999998092651,"connectStart":848.1999998092651,"domainLookupEnd":848.1999998092651,"domainLookupStart":848.1999998092651,"fetchStart":848.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":1341.1999998092651,"responseEnd":1867,"responseStart":1849.9000000953674,"secureConnectionStart":848.1999998092651},{"duration":471.5,"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":848.3000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":848.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1319.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":1091.9000000953674,"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":848.4000000953674,"connectEnd":848.4000000953674,"connectStart":848.4000000953674,"domainLookupEnd":848.4000000953674,"domainLookupStart":848.4000000953674,"fetchStart":848.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":1341.5999999046326,"responseEnd":1940.3000001907349,"responseStart":1850.3000001907349,"secureConnectionStart":848.4000000953674},{"duration":1951.5,"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":849.4000000953674,"connectEnd":849.4000000953674,"connectStart":849.4000000953674,"domainLookupEnd":849.4000000953674,"domainLookupStart":849.4000000953674,"fetchStart":849.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":1800.6999998092651,"responseEnd":2800.9000000953674,"responseStart":2792.300000190735,"secureConnectionStart":849.4000000953674},{"duration":1953.5,"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":849.5,"connectEnd":849.5,"connectStart":849.5,"domainLookupEnd":849.5,"domainLookupStart":849.5,"fetchStart":849.5,"redirectEnd":0,"redirectStart":0,"requestStart":2653.5,"responseEnd":2803,"responseStart":2796.4000000953674,"secureConnectionStart":849.5},{"duration":341,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":2864.4000000953674,"connectEnd":2864.4000000953674,"connectStart":2864.4000000953674,"domainLookupEnd":2864.4000000953674,"domainLookupStart":2864.4000000953674,"fetchStart":2864.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":3025.300000190735,"responseEnd":3205.4000000953674,"responseStart":3203.5999999046326,"secureConnectionStart":2864.4000000953674}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":148,"responseStart":773,"responseEnd":801,"domLoading":806,"domInteractive":3890,"domContentLoadedEventStart":3890,"domContentLoadedEventEnd":3983,"domComplete":5322,"loadEventStart":5322,"loadEventEnd":5323,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":3794.5999999046326},{"name":"bigPipe.sidebar-id.end","time":3795.4000000953674},{"name":"bigPipe.activity-panel-pipe-id.start","time":3795.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":3796},{"name":"activityTabFullyLoaded","time":4024.699999809265}],"measures":[],"correlationId":"4203ab1bd81bf8","effectiveType":"4g","downlink":9.4,"rtt":0,"serverDuration":410,"dbReadsTimeInMs":11,"dbConnsTimeInMs":19,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}