DROP TABLE IF EXISTS t1;
|
CREATE TABLE t1 (a VARCHAR(10));
|
INSERT INTO t1 VALUES ('a'),('b');
|
EXPLAIN FORMAT=JSON SELECT * FROM t1 WHERE a=_latin1 0xDF;
|
returns:
+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
| EXPLAIN |
|
+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
| {
|
"query_block": {
|
"select_id": 1,
|
"table": {
|
"table_name": "t1",
|
"access_type": "ALL",
|
"rows": 1,
|
"filtered": 100,
|
"attached_condition": "(t1.a = _latin1'�')"
|
}
|
}
|
} |
|
+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
Notice some garbage in the output.
EXPLAIN EXTENDED in for the same thing:
DROP TABLE IF EXISTS t1;
|
CREATE TABLE t1 (a VARCHAR(10));
|
EXPLAIN EXTENDED SELECT * FROM t1 WHERE a=_latin1 0xDF;
|
SHOW WARNINGS;
|
produces a result without garbage:
+-------+------+----------------------------------------------------------------------------------------+
|
| Level | Code | Message |
|
+-------+------+----------------------------------------------------------------------------------------+
|
| Note | 1003 | select `test`.`t1`.`a` AS `a` from `test`.`t1` where (`test`.`t1`.`a` = _latin1'\xDF') |
|
+-------+------+----------------------------------------------------------------------------------------+
|
Perhaps FORMAT=JSON should use the same style for output.
{"report":{"fcp":849.3999998569489,"ttfb":159.59999990463257,"pageVisibility":"visible","entityId":53114,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"f849fe36-1098-4429-a241-b7cc23d956a1","navigationType":0,"readyForUser":927.5,"redirectCount":0,"resourceLoadedEnd":566.8999998569489,"resourceLoadedStart":166.59999990463257,"resourceTiming":[{"duration":129.09999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":166.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":166.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":295.69999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":129.20000004768372,"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":166.89999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":166.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":296.09999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":138.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":167.09999990463257,"connectEnd":167.09999990463257,"connectStart":167.09999990463257,"domainLookupEnd":167.09999990463257,"domainLookupStart":167.09999990463257,"fetchStart":167.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":167.09999990463257,"responseEnd":306,"responseStart":306,"secureConnectionStart":167.09999990463257},{"duration":234.5,"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":167.29999995231628,"connectEnd":167.29999995231628,"connectStart":167.29999995231628,"domainLookupEnd":167.29999995231628,"domainLookupStart":167.29999995231628,"fetchStart":167.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":167.29999995231628,"responseEnd":401.7999999523163,"responseStart":401.7999999523163,"secureConnectionStart":167.29999995231628},{"duration":239.19999980926514,"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":167.5,"connectEnd":167.5,"connectStart":167.5,"domainLookupEnd":167.5,"domainLookupStart":167.5,"fetchStart":167.5,"redirectEnd":0,"redirectStart":0,"requestStart":167.5,"responseEnd":406.69999980926514,"responseStart":406.69999980926514,"secureConnectionStart":167.5},{"duration":239.29999995231628,"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":167.79999995231628,"connectEnd":167.79999995231628,"connectStart":167.79999995231628,"domainLookupEnd":167.79999995231628,"domainLookupStart":167.79999995231628,"fetchStart":167.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":167.79999995231628,"responseEnd":407.09999990463257,"responseStart":407.09999990463257,"secureConnectionStart":167.79999995231628},{"duration":239.79999995231628,"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":167.89999985694885,"connectEnd":167.89999985694885,"connectStart":167.89999985694885,"domainLookupEnd":167.89999985694885,"domainLookupStart":167.89999985694885,"fetchStart":167.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":167.89999985694885,"responseEnd":407.69999980926514,"responseStart":407.69999980926514,"secureConnectionStart":167.89999985694885},{"duration":291.59999990463257,"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":168.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":168.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":459.69999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":239.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":168.19999980926514,"connectEnd":168.19999980926514,"connectStart":168.19999980926514,"domainLookupEnd":168.19999980926514,"domainLookupStart":168.19999980926514,"fetchStart":168.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":168.19999980926514,"responseEnd":408.09999990463257,"responseStart":408.09999990463257,"secureConnectionStart":168.19999980926514},{"duration":291.40000009536743,"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":168.39999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":168.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":459.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":240.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":168.59999990463257,"connectEnd":168.59999990463257,"connectStart":168.59999990463257,"domainLookupEnd":168.59999990463257,"domainLookupStart":168.59999990463257,"fetchStart":168.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":168.59999990463257,"responseEnd":409.09999990463257,"responseStart":409.09999990463257,"secureConnectionStart":168.59999990463257},{"duration":296.60000014305115,"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":169.39999985694885,"connectEnd":169.39999985694885,"connectStart":169.39999985694885,"domainLookupEnd":169.39999985694885,"domainLookupStart":169.39999985694885,"fetchStart":169.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":169.39999985694885,"responseEnd":466,"responseStart":466,"secureConnectionStart":169.39999985694885},{"duration":312.2999999523163,"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":169.59999990463257,"connectEnd":169.59999990463257,"connectStart":169.59999990463257,"domainLookupEnd":169.59999990463257,"domainLookupStart":169.59999990463257,"fetchStart":169.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":169.59999990463257,"responseEnd":481.89999985694885,"responseStart":481.89999985694885,"secureConnectionStart":169.59999990463257},{"duration":21.5,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":490.69999980926514,"connectEnd":490.69999980926514,"connectStart":490.69999980926514,"domainLookupEnd":490.69999980926514,"domainLookupStart":490.69999980926514,"fetchStart":490.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":490.69999980926514,"responseEnd":512.1999998092651,"responseStart":512.0999999046326,"secureConnectionStart":490.69999980926514},{"duration":49.700000047683716,"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":517.1999998092651,"connectEnd":517.1999998092651,"connectStart":517.1999998092651,"domainLookupEnd":517.1999998092651,"domainLookupStart":517.1999998092651,"fetchStart":517.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":517.1999998092651,"responseEnd":566.8999998569489,"responseStart":566.8999998569489,"secureConnectionStart":517.1999998092651},{"duration":126.70000004768372,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":841.0999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":841.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":967.7999999523163,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":3,"responseStart":160,"responseEnd":161,"domLoading":164,"domInteractive":986,"domContentLoadedEventStart":986,"domContentLoadedEventEnd":1032,"domComplete":1414,"loadEventStart":1414,"loadEventEnd":1415,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":969.5999999046326},{"name":"bigPipe.sidebar-id.end","time":970.3999998569489},{"name":"bigPipe.activity-panel-pipe-id.start","time":970.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":973.0999999046326},{"name":"activityTabFullyLoaded","time":1040.0999999046326}],"measures":[],"correlationId":"e3343a6f180228","effectiveType":"4g","downlink":9.9,"rtt":0,"serverDuration":93,"dbReadsTimeInMs":15,"dbConnsTimeInMs":26,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}