[MCOL-1577] ColumnStore to allow CREATE TABLE table_name LIKE ... Syntax Created: 2018-07-20 Updated: 2020-08-25 Resolved: 2018-09-11 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | None |
| Affects Version/s: | 1.1.6 |
| Fix Version/s: | 1.2.0 |
| Type: | New Feature | Priority: | Major |
| Reporter: | Chris Calender (Inactive) | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Sprint: | 2018-15, 2018-16, 2018-17 |
| Description |
|
It would be nice if ColumnStore supported the CREATE TABLE table_name LIKE ... syntax. For instance, if you try to execute this CREATE TABLE command:
It throws the following error:
Here is the CREATE TABLE for the existing table, table1:
|
| Comments |
| Comment by Ravi Prakash (Inactive) [ 2018-08-17 ] |
|
Thing to notice is that source table can only be a columnstore table and hence only need to process supported syntax. I am using an already existing routine to extract the default values for a column and it generates an optional bracket for the current user function and hence the grammar was extended to allow this optional syntax. |
| Comment by Daniel Lee (Inactive) [ 2018-09-11 ] |
|
Build verified:1.2.0-1 source The source can also be Innodb tables, or other engines that the server already support. This change adds the support for the ColumnStore engine. Verified 1) syntax, on both InnoDB and ColumnStore tables |