[ https://issues.apache.org/jira/browse/HIVE-18853?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stamatis Zampetakis updated HIVE-18853: --------------------------------------- Fix Version/s: (was: 3.2.0) I cleared the fixVersion field since this ticket is still open. Please review this ticket and if the fix is already committed to a specific version please set the version accordingly and mark the ticket as RESOLVED. According to the [JIRA guidelines|https://cwiki.apache.org/confluence/display/Hive/HowToContribute] the fixVersion should be set only when the issue is resolved/closed. > 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 > > {code:sql} > create table ttest(i int constraint nn1 not null enable); > alter table ttest change i i 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: i > Constraint Name: nn2 > Column Name: i > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)