[
https://issues.apache.org/jira/browse/KUDU-2132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Will Berkeley updated KUDU-2132:
--------------------------------
Affects Version/s: 1.5.0
Code Review: https://gerrit.cloudera.org/#/c/8188/
Description:
We ran into the following situation in the attached randomized alter test log:
Two columns 'a' and 'b', 'a' is a primary key column. In the same alter table
request,
1. Rename 'a' to 'c'
2. Rename 'b' to 'a'
3. Drop 'a'
In step 3, 'a' is not a primary key column and can be dropped; however, we err
and reject the alter saying a primary key column cannot be dropped.
was:
There's code in the test to prevent this from happening, so I'm not quite sure
why it happened. I've attached the test log.
Component/s: (was: test)
master
Summary: False error dropping a column if it's renamed to the old
name of a primary key column in the same alter as the primary key is renamed
(was: alter_table-randomized-test can drop primary key columns)
> False error dropping a column if it's renamed to the old name of a primary
> key column in the same alter as the primary key is renamed
> -------------------------------------------------------------------------------------------------------------------------------------
>
> Key: KUDU-2132
> URL: https://issues.apache.org/jira/browse/KUDU-2132
> Project: Kudu
> Issue Type: Bug
> Components: master
> Affects Versions: 1.5.0
> Reporter: Adar Dembo
> Assignee: Will Berkeley
> Attachments: alter_table-randomized-test.txt
>
>
> We ran into the following situation in the attached randomized alter test log:
> Two columns 'a' and 'b', 'a' is a primary key column. In the same alter table
> request,
> 1. Rename 'a' to 'c'
> 2. Rename 'b' to 'a'
> 3. Drop 'a'
> In step 3, 'a' is not a primary key column and can be dropped; however, we
> err and reject the alter saying a primary key column cannot be dropped.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)