You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Piotr Pastuszka (JIRA)" <ji...@apache.org> on 2019/04/30 10:49:00 UTC

[jira] [Commented] (CASSANDRA-7662) Implement templated CREATE TABLE functionality (CREATE TABLE LIKE)

    [ https://issues.apache.org/jira/browse/CASSANDRA-7662?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16830178#comment-16830178 ] 

Piotr Pastuszka commented on CASSANDRA-7662:
--------------------------------------------

if there was CTAS functionality, then it would be enough to do CREATE TABLE x AS SELECT ... FROM y where 1 = 0;

CASSANDRA-8234 CTAS (CREATE TABLE AS SELECT)

> Implement templated CREATE TABLE functionality (CREATE TABLE LIKE)
> ------------------------------------------------------------------
>
>                 Key: CASSANDRA-7662
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7662
>             Project: Cassandra
>          Issue Type: New Feature
>          Components: Legacy/CQL
>            Reporter: Aleksey Yeschenko
>            Priority: Low
>             Fix For: 4.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
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org