You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by "Vandana Yadav (JIRA)" <ji...@apache.org> on 2017/11/10 07:26:00 UTC
[jira] [Created] (CARBONDATA-1697) Incorrect output displays on
presto CLI after alter table query
Vandana Yadav created CARBONDATA-1697:
-----------------------------------------
Summary: Incorrect output displays on presto CLI after alter table query
Key: CARBONDATA-1697
URL: https://issues.apache.org/jira/browse/CARBONDATA-1697
Project: CarbonData
Issue Type: Bug
Components: presto-integration
Affects Versions: 1.3.0
Environment: spark 2.1
Reporter: Vandana Yadav
Priority: Minor
Attachments: 2000_UniqData.csv
Incorrect output displays on presto CLI after alter table query
Steps to reproduce:
On Beeline:
1) Create Table:
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
LOAD DATA INPATH 'hdfs://localhost:54310/Data/uniqdata/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) Execute Query:
a) alter table uniqdata change decimal_column1 decimal_column1 decimal(36,12);
b) desc uniqdata;
output:
col_name | data_type | comment |
+----------------------+-----------------+----------+--+
| cust_id | int | NULL |
| cust_name | string | NULL |
| active_emui_version | string | NULL |
| dob | timestamp | NULL |
| doj | timestamp | NULL |
| bigint_column1 | bigint | NULL |
| bigint_column2 | bigint | NULL |
| decimal_column1 | decimal(36,12) | NULL |
| decimal_column2 | decimal(36,10) | NULL |
| double_column1 | double | NULL |
| double_column2 | double | NULL |
| integer_column1 | int | NULL |
+----------------------+-----------------+----------+--+
On Presto CLI
1)Execute Query:
a) desc uniqdata;
2) Expected Result: it should display the updated precision and scale value of decimal_column1 column as on beeline
3) Actual Result:
Column | Type | Extra | Comment
---------------------+----------------+-------+---------
cust_id | integer | |
cust_name | varchar | |
active_emui_version | varchar | |
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 | integer | |
(12 rows)
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)