What is the alternative to move partitioning if this is not implemented?
Remove partitions in the source and then recreate them once it has been moved over?
Manuel Arostegui
added a comment - What is the alternative to move partitioning if this is not implemented?
Remove partitions in the source and then recreate them once it has been moved over?
Geoff Montee (Inactive)
added a comment - marostegui ,
You can import/export partitions without this feature using a workaround, but it can be a little tedious. I wrote a blog post about how to do so here:
http://www.geoffmontee.com/importing-innodb-partitions-in-mysql-5-6-and-mariadb-10-010-1/
Thanks for the link. I have tried it but I am getting lots of
Column type mismatch
The columns are obviously the same and forcing a rebuild doesn't help anyways.
On varchar columns, and I am importing between exactly the same server versions 10.1.19
So for the moment the only solution I have found is removing the partitions, doing the transfer and creating them again. Not ideal, but...
Manuel Arostegui
added a comment - - edited Thanks for the link. I have tried it but I am getting lots of
Column type mismatch
The columns are obviously the same and forcing a rebuild doesn't help anyways.
On varchar columns, and I am importing between exactly the same server versions 10.1.19
So for the moment the only solution I have found is removing the partitions, doing the transfer and creating them again. Not ideal, but...
That's a pretty strange error to see if the columns really are exactly the same. Since these are varchar columns, do you know if the character encoding is the same on both servers?
If you want help tracking down the problem, feel free to post on the maria-discuss mailing list.
Geoff Montee (Inactive)
added a comment - marostegui ,
That's a pretty strange error to see if the columns really are exactly the same. Since these are varchar columns, do you know if the character encoding is the same on both servers?
If you want help tracking down the problem, feel free to post on the maria-discuss mailing list.
https://launchpad.net/~maria-discuss
A slightly different take on this the change in MySQL 5.7 also allows not just ALTER TABLE <table> DISCARD PARTITION <partitions> TABLESPACE for specific partitions. But seems to fix DISCARD TABLESPACE applied to the whole table as well which returns an error in Mariadb (10.2.6). Can we get that fix/improvement as well?
Steve Ruby
added a comment - A slightly different take on this the change in MySQL 5.7 also allows not just ALTER TABLE <table> DISCARD PARTITION <partitions> TABLESPACE for specific partitions. But seems to fix DISCARD TABLESPACE applied to the whole table as well which returns an error in Mariadb (10.2.6). Can we get that fix/improvement as well?
Maybe we should split this into two tickets, one for DISCARD/IMPORT support for partitioned tables in general, and one for being able to DISCARD/IMPORT specific partitions only?
Hartmut Holzgraefe
added a comment - Maybe we should split this into two tickets, one for DISCARD/IMPORT support for partitioned tables in general, and one for being able to DISCARD/IMPORT specific partitions only?
I do not know if it is a viable work-around, but I would think using this syntax, you could export or import partitions as individual tables.
From the InnoDB point of view, each partition or subpartition that stores data is a normal table that uses a funny name.
MDEV-26137 made the step ALTER TABLE…DISCARD TABLESPACE optional.
Marko Mäkelä
added a comment - I see that there is a feature
ALTER TABLE t1 EXCHANGE PARTITION p0 WITH TABLE t1p0;
I do not know if it is a viable work-around, but I would think using this syntax, you could export or import partitions as individual tables.
From the InnoDB point of view, each partition or subpartition that stores data is a normal table that uses a funny name.
MDEV-26137 made the step ALTER TABLE…DISCARD TABLESPACE optional.
In MDEV-13626, I came across the MySQL 5.7 tests innodb.innodb-import-partition-rpl and innodb.innodb-import-partition. The latter was originally added in the implementation of MySQL WL#6867.
Marko Mäkelä
added a comment - In MDEV-13626 , I came across the MySQL 5.7 tests innodb.innodb-import-partition-rpl and innodb.innodb-import-partition . The latter was originally added in the implementation of MySQL WL#6867 .
People
Marko Mäkelä
Geoff Montee (Inactive)
Votes:
12Vote for this issue
Watchers:
15Start watching this issue
Dates
Created:
Updated:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":1502.1999998092651,"ttfb":626.6999998092651,"pageVisibility":"visible","entityId":57665,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"2c1ce644-a4d6-475a-af44-eed8cc300bab","navigationType":0,"readyForUser":1581.6999998092651,"redirectCount":0,"resourceLoadedEnd":1568.1999998092651,"resourceLoadedStart":638.9000000953674,"resourceTiming":[{"duration":146.69999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":638.9000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":638.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":785.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":149,"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":639.1999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":639.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":788.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":243,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":639.4000000953674,"connectEnd":639.4000000953674,"connectStart":639.4000000953674,"domainLookupEnd":639.4000000953674,"domainLookupStart":639.4000000953674,"fetchStart":639.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":639.4000000953674,"responseEnd":882.4000000953674,"responseStart":882.4000000953674,"secureConnectionStart":639.4000000953674},{"duration":396.90000009536743,"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":639.5999999046326,"connectEnd":639.5999999046326,"connectStart":639.5999999046326,"domainLookupEnd":639.5999999046326,"domainLookupStart":639.5999999046326,"fetchStart":639.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":639.5999999046326,"responseEnd":1036.5,"responseStart":1036.5,"secureConnectionStart":639.5999999046326},{"duration":401.6000003814697,"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":639.7999997138977,"connectEnd":639.7999997138977,"connectStart":639.7999997138977,"domainLookupEnd":639.7999997138977,"domainLookupStart":639.7999997138977,"fetchStart":639.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":639.7999997138977,"responseEnd":1041.4000000953674,"responseStart":1041.2999997138977,"secureConnectionStart":639.7999997138977},{"duration":401.7999997138977,"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":640,"connectEnd":640,"connectStart":640,"domainLookupEnd":640,"domainLookupStart":640,"fetchStart":640,"redirectEnd":0,"redirectStart":0,"requestStart":640,"responseEnd":1041.7999997138977,"responseStart":1041.7999997138977,"secureConnectionStart":640},{"duration":402.80000019073486,"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":640.1999998092651,"connectEnd":640.1999998092651,"connectStart":640.1999998092651,"domainLookupEnd":640.1999998092651,"domainLookupStart":640.1999998092651,"fetchStart":640.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":640.1999998092651,"responseEnd":1043,"responseStart":1043,"secureConnectionStart":640.1999998092651},{"duration":414.5,"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":640.4000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":640.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1054.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":403.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":640.5999999046326,"connectEnd":640.5999999046326,"connectStart":640.5999999046326,"domainLookupEnd":640.5999999046326,"domainLookupStart":640.5999999046326,"fetchStart":640.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":640.5999999046326,"responseEnd":1044.4000000953674,"responseStart":1044.4000000953674,"secureConnectionStart":640.5999999046326},{"duration":414.30000019073486,"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":640.6999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":640.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1055,"responseStart":0,"secureConnectionStart":0},{"duration":404.2999997138977,"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":640.9000000953674,"connectEnd":640.9000000953674,"connectStart":640.9000000953674,"domainLookupEnd":640.9000000953674,"domainLookupStart":640.9000000953674,"fetchStart":640.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":640.9000000953674,"responseEnd":1045.1999998092651,"responseStart":1045.1999998092651,"secureConnectionStart":640.9000000953674},{"duration":728.9000000953674,"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":642.2999997138977,"connectEnd":642.2999997138977,"connectStart":642.2999997138977,"domainLookupEnd":642.2999997138977,"domainLookupStart":642.2999997138977,"fetchStart":642.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":642.2999997138977,"responseEnd":1371.1999998092651,"responseStart":1371.1999998092651,"secureConnectionStart":642.2999997138977},{"duration":795.7999997138977,"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":642.4000000953674,"connectEnd":642.4000000953674,"connectStart":642.4000000953674,"domainLookupEnd":642.4000000953674,"domainLookupStart":642.4000000953674,"fetchStart":642.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":642.4000000953674,"responseEnd":1438.1999998092651,"responseStart":1438.1999998092651,"secureConnectionStart":642.4000000953674},{"duration":301.80000019073486,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1069.7999997138977,"connectEnd":1069.7999997138977,"connectStart":1069.7999997138977,"domainLookupEnd":1069.7999997138977,"domainLookupStart":1069.7999997138977,"fetchStart":1069.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":1069.7999997138977,"responseEnd":1371.5999999046326,"responseStart":1371.5999999046326,"secureConnectionStart":1069.7999997138977},{"duration":182.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&slack-enabled=true&whisper-enabled=true","startTime":1386,"connectEnd":1386,"connectStart":1386,"domainLookupEnd":1386,"domainLookupStart":1386,"fetchStart":1386,"redirectEnd":0,"redirectStart":0,"requestStart":1386,"responseEnd":1568.1999998092651,"responseStart":1568.1999998092651,"secureConnectionStart":1386}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":465,"responseStart":627,"responseEnd":633,"domLoading":636,"domInteractive":1692,"domContentLoadedEventStart":1692,"domContentLoadedEventEnd":1747,"domComplete":2100,"loadEventStart":2100,"loadEventEnd":2101,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1645.4000000953674},{"name":"bigPipe.sidebar-id.end","time":1646.0999999046326},{"name":"bigPipe.activity-panel-pipe-id.start","time":1646.2999997138977},{"name":"bigPipe.activity-panel-pipe-id.end","time":1649},{"name":"activityTabFullyLoaded","time":1770.5999999046326}],"measures":[],"correlationId":"13080d635d02b","effectiveType":"4g","downlink":9.2,"rtt":0,"serverDuration":106,"dbReadsTimeInMs":13,"dbConnsTimeInMs":21,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
What is the alternative to move partitioning if this is not implemented?
Remove partitions in the source and then recreate them once it has been moved over?