You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Gabriel Reid (JIRA)" <ji...@apache.org> on 2014/03/16 08:18:28 UTC

[jira] [Resolved] (PHOENIX-734) add "CREATE TABLE table_a LIKE table_b" syntax

     [ https://issues.apache.org/jira/browse/PHOENIX-734?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gabriel Reid resolved PHOENIX-734.
----------------------------------

    Resolution: Fixed

Bulk resolve of closed issues imported from GitHub. This status was reached by first re-opening all closed imported issues and then resolving them in bulk.

> add "CREATE TABLE table_a LIKE table_b" syntax
> ----------------------------------------------
>
>                 Key: PHOENIX-734
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-734
>             Project: Phoenix
>          Issue Type: Task
>            Reporter: Haitao Yao
>
> Add create table like syntax:
> antlr definition:
> ```antlr
> create_table_like_node returns [CreateTableLikeStatement ret]
>     :   CREATE TABLE new_table=from_table_name LIKE base_table=from_table_name
>     	{ret = factory.createTableLike(new_table, base_table, getBindCount());}
>     ;
> ```
> and the sql will be like this:
> ```sql
> CREATE TABLE test LIKE table_b;
> ```



--
This message was sent by Atlassian JIRA
(v6.2#6252)