[jira] [Closed] (CARBONDATA-1695) Inaccurate result displays on presto CLI while select Query after change data type Query

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Closed] (CARBONDATA-1695) Inaccurate result displays on presto CLI while select Query after change data type Query

Akash R Nilugal (Jira)

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

Vandana Yadav closed CARBONDATA-1695.
-------------------------------------
    Resolution: Fixed

this issue is resolved with https://github.com/apache/carbondata/pull/1486 PR.

> Inaccurate result displays on presto CLI while select Query after change data type Query
> ----------------------------------------------------------------------------------------
>
>                 Key: CARBONDATA-1695
>                 URL: https://issues.apache.org/jira/browse/CARBONDATA-1695
>             Project: CarbonData
>          Issue Type: Bug
>          Components: presto-integration
>    Affects Versions: 1.3.0
>         Environment: spark 2.1
>            Reporter: Vandana Yadav
>            Assignee: anubhav tarar
>            Priority: Minor
>         Attachments: 2000_UniqData.csv
>
>
> Inaccurate result displays on presto CLI while select Query after change data type 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)desc uniqdata:
> outpurt:
> +----------------------+-----------------+----------+--+
> |       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(30,10)  | NULL     |
> | DECIMAL_COLUMN2      | decimal(36,10)  | NULL     |
> | Double_COLUMN1       | double          | NULL     |
> | Double_COLUMN2       | double          | NULL     |
> | INTEGER_COLUMN1      | int             | NULL     |
> +----------------------+-----------------+----------+--+
> b)alter table uniqdata change decimal_column1 decimal_column1 decimal(36,12);
> c)select decimal_column1 from uniqdata;
> output:
> +---------------------------+--+
> |      decimal_column1      |
> +---------------------------+--+
> | NULL                      |
> | NULL                      |
> | NULL                      |
> | NULL                      |
> | 12345678901.123400000000  |
> | NULL                      |
> | NULL                      |
> | NULL                      |
> | NULL                      |
> | NULL                      |
> | NULL                      |
> | NULL                      |
> | NULL                      |
> | 12345678901.123400000000  |
> | 12345678902.123400000000  |
> | 12345678903.123400000000  |
> | 12345678904.123400000000  |
> | 12345678905.123400000000  |
> | 12345678906.123400000000  |
> | 12345678907.123400000000  |
> | 12345678908.123400000000  |
> | 12345678909.123400000000  |
> | 12345678910.123400000000  |
> | 12345678911.123400000000  |
> | 12345678912.123400000000  |
> | 12345678913.123400000000  |
> | 12345678914.123400000000  |
> On Presto CLI:
> 1)Execute Queries:
> a) desc uniqdata;
> b) select decimal_column1 from uniqdata;
> Expected Output: Same as in beeline(no change in value before the decimal.
> Actual Output:
>     decimal_column1      
> --------------------------
>  NULL                    
>  NULL                    
>  NULL                    
>  NULL                    
>  1234567890112.3400000000
>  NULL                    
>  NULL                    
>  NULL                    
>  NULL                    
>  NULL                    
>  NULL                    
>  NULL                    
>  NULL                    
>  1234567890112.3400000000
>  1234567890212.3400000000
>  1234567890312.3400000000
>  1234567890412.3400000000
>  1234567890512.3400000000
>  1234567890612.3400000000
>  1234567890712.3400000000
>  1234567890812.3400000000
>  1234567890912.3400000000
>  1234567891012.3400000000
>  1234567891112.3400000000
>  1234567891212.3400000000
>  1234567891312.3400000000
>  1234567891412.3400000000



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