carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vinod Rohilla (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (CARBONDATA-1144) Drop column operation failed in Alter table.
Date Tue, 04 Jul 2017 10:34:00 GMT

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

Vinod Rohilla closed CARBONDATA-1144.
-------------------------------------
    Assignee: Vinod Rohilla  (was: Kunal Kapoor)

Issue Fixed.

0: jdbc:hive2://localhost:10000> CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION
string, DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1
decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1
int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES ("TABLE_BLOCKSIZE"= "256 MB");
+---------+--+
| Result  |
+---------+--+
+---------+--+
No rows selected (3.744 seconds)
0: jdbc:hive2://localhost:10000> LOAD DATA INPATH 'hdfs://localhost:54310/2000_UniqData.csv'
into table uniqdata OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1');
+---------+--+
| Result  |
+---------+--+
+---------+--+
No rows selected (14.665 seconds)
0: jdbc:hive2://localhost:10000> 
0: jdbc:hive2://localhost:10000> alter table uniqdata drop columns(CUST_NAME);
+---------+--+
| Result  |
+---------+--+
+---------+--+
No rows selected (2.549 seconds)


> Drop column operation failed in Alter table. 
> ---------------------------------------------
>
>                 Key: CARBONDATA-1144
>                 URL: https://issues.apache.org/jira/browse/CARBONDATA-1144
>             Project: CarbonData
>          Issue Type: Bug
>          Components: data-query
>    Affects Versions: 1.2.0
>         Environment: Spark 2.1
>            Reporter: Vinod Rohilla
>            Assignee: Vinod Rohilla
>            Priority: Minor
>             Fix For: 1.2.0
>
>         Attachments: 2000_UniqData.csv
>
>          Time Spent: 2h
>  Remaining Estimate: 0h
>
> Drop column does not work in Alter table.
> Steps to reproduce:
> 1: Create a table in Carbon:
> CREATE TABLE uniqdata (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string, DOB timestamp,
DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1 decimal(30,10),
DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1
int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES ("TABLE_BLOCKSIZE"= "256 MB");
> 2: Load Data in a table:
> LOAD DATA INPATH 'hdfs://localhost:54310/2000_UniqData.csv' into table uniqdata OPTIONS('DELIMITER'=','
, 'QUOTECHAR'='"','BAD_RECORDS_ACTION'='FORCE','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1');
> 3: Run the following query: alter table uniqdata drop columns(CUST_NAME);
> 4: Result:
> 0: jdbc:hive2://localhost:10000> alter table uniqdata drop columns(CUST_NAME);
> Error: java.lang.RuntimeException: Alter table drop column operation failed: null (state=,code=0)
> Expected Result: Column should be dropped.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message