[ https://issues.apache.org/jira/browse/CASSANDRA-7662?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14998650#comment-14998650 ]
Aleksey Yeschenko commented on CASSANDRA-7662: ---------------------------------------------- Sorry for a very late reply. There are multiple things not covered by the patch: - triggers should not be copied, as names would clash (as they are keyspace-scoped) - indexes should not be copied, as names would clash (as they are keyspace-scoped) - there are not tests (utest or dtests) - in-tree CQL documentation would need to be updated as well - the code doesn't follow the [Code Style|https://wiki.apache.org/cassandra/CodeStyle] If you still want to give it a go, please do, but base the patch on trunk (3.2+) branch of C* this time. Sorry. > Implement templated CREATE TABLE functionality (CREATE TABLE LIKE) > ------------------------------------------------------------------ > > Key: CASSANDRA-7662 > URL: https://issues.apache.org/jira/browse/CASSANDRA-7662 > Project: Cassandra > Issue Type: Improvement > Reporter: Aleksey Yeschenko > Priority: Minor > Fix For: 3.x > > Attachments: 7662.patch, CASSANDRA-7662.patch > > > Implement templated CREATE TABLE functionality (CREATE TABLE LIKE) to > simplify creating new tables duplicating existing ones (see parent_table part > of http://www.postgresql.org/docs/9.1/static/sql-createtable.html). > CREATE TABLE <new_table> LIKE <old_table>; - would create a new table with > the same columns and options as <old_table> -- This message was sent by Atlassian JIRA (v6.3.4#6332)