CREATE TEMPORARY TABLE ... LIKE is a convenient way to clone tables for testing, but table compression breaks it:
(10:51) vagrant@localhost:[test]> CREATE TABLE t(c INT) ROW_FORMAT=COMPRESSED;
Query OK, 0 rows affected (0.025 sec)
(10:51) vagrant@localhost:[test]> CREATE TEMPORARY TABLE tt LIKE t;
ERROR 4047 (HY000): CREATE TEMPORARY TABLE is not allowed with ROW_FORMAT=COMPRESSED or KEY_BLOCK_SIZE.
Error (Code 4047): CREATE TEMPORARY TABLE is not allowed with ROW_FORMAT=COMPRESSED or KEY_BLOCK_SIZE.
Warning (Code 1030): Got error 140 "Wrong create options" from storage engine InnoDB
It would be more sensible behavior to just ignore the origin table's ROW_FORMAT setting.
relates to
MDEV-11816
Disallow CREATE TEMPORARY TABLE…ROW_FORMAT=COMPRESSED
Closed
Gergő Tisza
made changes -
2022-11-08 18:11
Field
Original Value
New Value
Description
CREATE TEMPORARY TABLE ... LIKE is a convenient way to clone tables for testing, but table compression breaks it:
{{
(10:51) vagrant@localhost :[test]> CREATE TABLE t(c INT) ROW_FORMAT=COMPRESSED;
Query OK, 0 rows affected (0.025 sec)
(10:51) vagrant@localhost :[test]> CREATE TEMPORARY TABLE tt LIKE t;
ERROR 4047 (HY000): CREATE TEMPORARY TABLE is not allowed with ROW_FORMAT=COMPRESSED or KEY_BLOCK_SIZE.
Error (Code 4047): CREATE TEMPORARY TABLE is not allowed with ROW_FORMAT=COMPRESSED or KEY_BLOCK_SIZE.
Warning (Code 1030): Got error 140 "Wrong create options" from storage engine InnoDB
}}
It would be more sensible behavior to just ignore the origin table's ROW_FORMAT setting.
CREATE TEMPORARY TABLE ... LIKE is a convenient way to clone tables for testing, but table compression breaks it:
{{(10:51) vagrant@localhost :[test]> CREATE TABLE t(c INT) ROW_FORMAT=COMPRESSED;
Query OK, 0 rows affected (0.025 sec)
(10:51) vagrant@localhost :[test]> CREATE TEMPORARY TABLE tt LIKE t;
ERROR 4047 (HY000): CREATE TEMPORARY TABLE is not allowed with ROW_FORMAT=COMPRESSED or KEY_BLOCK_SIZE.
Error (Code 4047): CREATE TEMPORARY TABLE is not allowed with ROW_FORMAT=COMPRESSED or KEY_BLOCK_SIZE.
Warning (Code 1030): Got error 140 "Wrong create options" from storage engine InnoDB}}
It would be more sensible behavior to just ignore the origin table's ROW_FORMAT setting.
Gergő Tisza
made changes -
2022-11-08 18:13
Description
CREATE TEMPORARY TABLE ... LIKE is a convenient way to clone tables for testing, but table compression breaks it:
{{(10:51) vagrant@localhost :[test]> CREATE TABLE t(c INT) ROW_FORMAT=COMPRESSED;
Query OK, 0 rows affected (0.025 sec)
(10:51) vagrant@localhost :[test]> CREATE TEMPORARY TABLE tt LIKE t;
ERROR 4047 (HY000): CREATE TEMPORARY TABLE is not allowed with ROW_FORMAT=COMPRESSED or KEY_BLOCK_SIZE.
Error (Code 4047): CREATE TEMPORARY TABLE is not allowed with ROW_FORMAT=COMPRESSED or KEY_BLOCK_SIZE.
Warning (Code 1030): Got error 140 "Wrong create options" from storage engine InnoDB}}
It would be more sensible behavior to just ignore the origin table's ROW_FORMAT setting.
CREATE TEMPORARY TABLE ... LIKE is a convenient way to clone tables for testing, but table compression breaks it:
{noformat}
(10:51) vagrant@localhost :[test]> CREATE TABLE t(c INT) ROW_FORMAT=COMPRESSED;
Query OK, 0 rows affected (0.025 sec)
(10:51) vagrant@localhost :[test]> CREATE TEMPORARY TABLE tt LIKE t;
ERROR 4047 (HY000): CREATE TEMPORARY TABLE is not allowed with ROW_FORMAT=COMPRESSED or KEY_BLOCK_SIZE.
Error (Code 4047): CREATE TEMPORARY TABLE is not allowed with ROW_FORMAT=COMPRESSED or KEY_BLOCK_SIZE.
Warning (Code 1030): Got error 140 "Wrong create options" from storage engine InnoDB
{noformat}
It would be more sensible behavior to just ignore the origin table's ROW_FORMAT setting.
{"report":{"fcp":1062.2999992370605,"ttfb":268.5999994277954,"pageVisibility":"visible","entityId":116582,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"07f589e8-f715-4a03-bff1-cce46dce212b","navigationType":0,"readyForUser":1142.0999994277954,"redirectCount":0,"resourceLoadedEnd":1635.0999994277954,"resourceLoadedStart":273.69999980926514,"resourceTiming":[{"duration":182.89999961853027,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":273.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":273.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":456.5999994277954,"responseStart":0,"secureConnectionStart":0},{"duration":183.29999923706055,"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":274,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":274,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":457.29999923706055,"responseStart":0,"secureConnectionStart":0},{"duration":269.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":274.19999980926514,"connectEnd":274.19999980926514,"connectStart":274.19999980926514,"domainLookupEnd":274.19999980926514,"domainLookupStart":274.19999980926514,"fetchStart":274.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":274.19999980926514,"responseEnd":544,"responseStart":544,"secureConnectionStart":274.19999980926514},{"duration":394.30000019073486,"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":274.69999980926514,"connectEnd":274.69999980926514,"connectStart":274.69999980926514,"domainLookupEnd":274.69999980926514,"domainLookupStart":274.69999980926514,"fetchStart":274.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":274.69999980926514,"responseEnd":669,"responseStart":669,"secureConnectionStart":274.69999980926514},{"duration":403.1000003814697,"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":274.8999996185303,"connectEnd":274.8999996185303,"connectStart":274.8999996185303,"domainLookupEnd":274.8999996185303,"domainLookupStart":274.8999996185303,"fetchStart":274.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":274.8999996185303,"responseEnd":678,"responseStart":678,"secureConnectionStart":274.8999996185303},{"duration":403.5,"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":275.0999994277954,"connectEnd":275.0999994277954,"connectStart":275.0999994277954,"domainLookupEnd":275.0999994277954,"domainLookupStart":275.0999994277954,"fetchStart":275.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":275.0999994277954,"responseEnd":678.5999994277954,"responseStart":678.5999994277954,"secureConnectionStart":275.0999994277954},{"duration":403.6000003814697,"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":275.3999996185303,"connectEnd":275.3999996185303,"connectStart":275.3999996185303,"domainLookupEnd":275.3999996185303,"domainLookupStart":275.3999996185303,"fetchStart":275.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":275.3999996185303,"responseEnd":679,"responseStart":679,"secureConnectionStart":275.3999996185303},{"duration":431.5999994277954,"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":275.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":275.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":707.0999994277954,"responseStart":0,"secureConnectionStart":0},{"duration":404.20000076293945,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":275.79999923706055,"connectEnd":275.79999923706055,"connectStart":275.79999923706055,"domainLookupEnd":275.79999923706055,"domainLookupStart":275.79999923706055,"fetchStart":275.79999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":275.79999923706055,"responseEnd":680,"responseStart":680,"secureConnectionStart":275.79999923706055},{"duration":431.29999923706055,"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":276,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":276,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":707.2999992370605,"responseStart":0,"secureConnectionStart":0},{"duration":404.69999980926514,"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":276.0999994277954,"connectEnd":276.0999994277954,"connectStart":276.0999994277954,"domainLookupEnd":276.0999994277954,"domainLookupStart":276.0999994277954,"fetchStart":276.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":276.0999994277954,"responseEnd":680.7999992370605,"responseStart":680.7999992370605,"secureConnectionStart":276.0999994277954},{"duration":1345.6000003814697,"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":281.5999994277954,"connectEnd":281.5999994277954,"connectStart":281.5999994277954,"domainLookupEnd":281.5999994277954,"domainLookupStart":281.5999994277954,"fetchStart":281.5999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":281.5999994277954,"responseEnd":1627.1999998092651,"responseStart":1627.1999998092651,"secureConnectionStart":281.5999994277954},{"duration":1352.8999996185303,"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":282.19999980926514,"connectEnd":282.19999980926514,"connectStart":282.19999980926514,"domainLookupEnd":282.19999980926514,"domainLookupStart":282.19999980926514,"fetchStart":282.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":282.19999980926514,"responseEnd":1635.0999994277954,"responseStart":1635.0999994277954,"secureConnectionStart":282.19999980926514},{"duration":895.8999996185303,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":729.5,"connectEnd":729.5,"connectStart":729.5,"domainLookupEnd":729.5,"domainLookupStart":729.5,"fetchStart":729.5,"redirectEnd":0,"redirectStart":0,"requestStart":729.5,"responseEnd":1625.3999996185303,"responseStart":1625.3999996185303,"secureConnectionStart":729.5},{"duration":607.3000001907349,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1042.5999994277954,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1042.5999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1649.8999996185303,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":88,"responseStart":269,"responseEnd":283,"domLoading":272,"domInteractive":1777,"domContentLoadedEventStart":1777,"domContentLoadedEventEnd":1824,"domComplete":2306,"loadEventStart":2306,"loadEventEnd":2307,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1742.5},{"name":"bigPipe.sidebar-id.end","time":1743.2999992370605},{"name":"bigPipe.activity-panel-pipe-id.start","time":1743.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":1745.2999992370605},{"name":"activityTabFullyLoaded","time":1839.7999992370605}],"measures":[],"correlationId":"fd9bb1cc06f8fc","effectiveType":"4g","downlink":9.1,"rtt":0,"serverDuration":94,"dbReadsTimeInMs":11,"dbConnsTimeInMs":19,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}