[jira] [Assigned] (CARBONDATA-962) Less than operator(<) doesn't work properly in presto integration

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

[jira] [Assigned] (CARBONDATA-962) Less than operator(<) doesn't work properly in presto integration

Akash R Nilugal (Jira)

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

Jatin reassigned CARBONDATA-962:
--------------------------------

    Assignee: Jatin

> Less than operator(<) doesn't work properly in presto integration
> -----------------------------------------------------------------
>
>                 Key: CARBONDATA-962
>                 URL: https://issues.apache.org/jira/browse/CARBONDATA-962
>             Project: CarbonData
>          Issue Type: Bug
>          Components: data-query, presto-integration
>    Affects Versions: 1.1.0
>         Environment: spark 2.1, presto 0.166
>            Reporter: Vandana Yadav
>            Assignee: Jatin
>            Priority: Minor
>         Attachments: 2000_UniqData.csv
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> Less than operator(<) doesn't work properly in presto integration
> steps to reproduce :
> 1. in beeline
> a) 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");
> b) load data :
> 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');
> 2. in presto
> a) execute the query:
> select DOB from uniqdata where DOB <cast('1970-06-19 01:00:03'as timestamp) order by DOB;
> expected result: it should display dob in asc order where dob<’1970-06-19 01:00:03’
> actual result:
>           DOB          
> -------------------------
>  1970-01-01 10:00:03.000
> (1 row)
> Query 20170420_110635_00036_4hfqu, FINISHED, 1 node
> Splits: 18 total, 18 done (100.00%)
> 0:00 [1 rows, 1B] [5 rows/s, 5B/s]



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