You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Vineet Garg (JIRA)" <ji...@apache.org> on 2018/03/02 22:56:00 UTC

[jira] [Assigned] (HIVE-18853) Alter table change column shouldn't let define same constraint on a column with existing constraint

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

Vineet Garg reassigned HIVE-18853:
----------------------------------


> Alter table change column shouldn't let define same constraint on a column with existing constraint
> ---------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-18853
>                 URL: https://issues.apache.org/jira/browse/HIVE-18853
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Vineet Garg
>            Assignee: Vineet Garg
>            Priority: Major
>             Fix For: 3.0.0
>
>
> {code:sql}
> create table ttest(i int constraint nn1 not null enable);
> alter table ttest change i j int constraint nn2 not null enable);
> {code}
> The above statements will end up creating multiple not null constraints on column i/j. 
> {code:sql}
> desc formatted ttest;
> # Not Null Constraints
> Table:              	constraints.ttest
> Constraint Name:    	nn1
> Column Name:        	null
> Constraint Name:    	nn2
> Column Name:        	j
> {code}



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