You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "James Taylor (JIRA)" <ji...@apache.org> on 2018/03/21 16:23:00 UTC

[jira] [Commented] (PHOENIX-4651) alter table test modify column is not support

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

James Taylor commented on PHOENIX-4651:
---------------------------------------

Now that we have an indirection between the column name and the column qualifier through column encoding, we should be able to support modifying existing columns too. For example, to change a data type, you'd need to:
- create a new column of the new type
- run an async MR job to convert from old to new type
- upon successful completion, removing the old column and rename the existing one

> alter table test modify column is not support
> ---------------------------------------------
>
>                 Key: PHOENIX-4651
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-4651
>             Project: Phoenix
>          Issue Type: New Feature
>    Affects Versions: 4.10.0
>            Reporter: Jepson
>            Priority: Critical
>   Original Estimate: 504h
>  Remaining Estimate: 504h
>
> Modify the column type length, is very inconvenient, drop first ,then add.
> Such as:
> alter table jydw.test drop column name;
>  alter table jydw.test add name varchar(256);
> The alter table test modify column sql is not support.
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)