[
https://issues.apache.org/jira/browse/CARBONDATA-1802?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ajeet Rai closed CARBONDATA-1802.
---------------------------------
Issue is fixed.Alter query is success after dropping the column in a table where there is no key column.
> Carbon1.3.0 Alter:Alter query fails if a column is dropped and there is no key column
> --------------------------------------------------------------------------------------
>
> Key: CARBONDATA-1802
> URL:
https://issues.apache.org/jira/browse/CARBONDATA-1802> Project: CarbonData
> Issue Type: Bug
> Affects Versions: 1.3.0
> Environment: 3 Node ant cluster
> Reporter: Ajeet Rai
> Assignee: dhatchayani
> Priority: Major
> Labels: functional
> Fix For: 1.3.0
>
> Time Spent: 1h 10m
> Remaining Estimate: 0h
>
> Carbon1.3.0 Alter:Alter query fails if a column is dropped and there is no key column.
> Steps:
> 1: create table ttt(c int,d int,e int) stored by 'carbondata';
> 2: Alter table ttt drop columns(c);
> 3: observe that below error is coming:
> Error: java.lang.RuntimeException: Alter table drop column operation failed: Alter drop operation failed. AtLeast one key column should exist after drop.
> Expected: Since user is able to create a table with all numeric columns, Same should be supported in Alter feature.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)