[MDEV-25917] create table like fails if source table is partitioned and engine is myisam or aria with data directory. Created: 2021-06-15 Updated: 2022-04-19 Resolved: 2022-01-25 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Partitioning |
| Affects Version/s: | 10.4.15, 10.2, 10.3, 10.4, 10.5 |
| Fix Version/s: | 10.2.42, 10.3.33, 10.4.23, 10.5.14, 10.6.6, 10.7.2, 10.8.1 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Allen Lee (Inactive) | Assignee: | Alexey Botchkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
KB noted here - https://mariadb.com/kb/en/create-table/#create-table-like
However, create table like innodb table with data directory works and have `DATA DIRECTORY ` definition. Here is InnoDB example.
Here is MyISAM example.
Above error also applies to aria storage engine. |
| Comments |
| Comment by Alice Sherepa [ 2021-06-15 ] | |||||||||||||||||||||||||
|
I repeated as described on 10.1-10.5, 5.5 and 10.0 InnoDb does the same as on versions >10.1, but myisam creates a table in the data directory (so no error, but also does not ignore data directory, just uses the same data definition)
| |||||||||||||||||||||||||
| Comment by Alexey Botchkov [ 2022-01-22 ] | |||||||||||||||||||||||||
|
https://github.com/MariaDB/server/commit/5fe3919fe10e38a0fb03b68c1ffd0d370d3083f2 | |||||||||||||||||||||||||
| Comment by Alexander Barkov [ 2022-01-24 ] | |||||||||||||||||||||||||
|
holyfoot, I suggest the following changes:
| |||||||||||||||||||||||||
| Comment by Alexey Botchkov [ 2022-01-24 ] | |||||||||||||||||||||||||
|
Another fix proposal | |||||||||||||||||||||||||
| Comment by Alexander Barkov [ 2022-01-24 ] | |||||||||||||||||||||||||
|
https://github.com/MariaDB/server/commit/d9dd22da99532bc8f9e2591c1b35daf64354574a is OK to push. Thanks. | |||||||||||||||||||||||||
| Comment by Alexey Botchkov [ 2022-01-25 ] | |||||||||||||||||||||||||
|
https://github.com/MariaDB/server/commit/50e66db018d0d0ee49fd2b7196f30ed4594dc2b3 |