[jira] [Closed] (CARBONDATA-1057) Incorrect result displays while using (>=) and (<=) operators in range filter

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

[jira] [Closed] (CARBONDATA-1057) Incorrect result displays while using (>=) and (<=) operators in range filter

Akash R Nilugal (Jira)

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

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

duplicate: same bug already exist

> Incorrect result displays while using (>=) and (<=) operators in range filter
> -----------------------------------------------------------------------------
>
>                 Key: CARBONDATA-1057
>                 URL: https://issues.apache.org/jira/browse/CARBONDATA-1057
>             Project: CarbonData
>          Issue Type: Bug
>          Components: data-query
>    Affects Versions: 1.1.0
>         Environment: spark 2.1
>            Reporter: Vandana Yadav
>            Priority: Minor
>         Attachments: 2000_UniqData.csv
>
>
> Incorrect result displays while using (>=) and (<=) operators in range filter
> Steps to reproduce:
> 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/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:
> select dob from uniqdata where dob>='1972-12-23' and dob <= '1972-12-31'
> 4) Actual Result:
> In Carbondata:
> +------+--+
> | dob  |
> +------+--+
> +------+--+
> No rows selected (0.259 seconds)
> In Hive:
> +------------------------+--+
> |          dob           |
> +------------------------+--+
> | 1972-12-23 01:00:03.0  |
> | 1972-12-24 01:00:03.0  |
> | 1972-12-25 01:00:03.0  |
> | 1972-12-26 01:00:03.0  |
> | 1972-12-27 01:00:03.0  |
> | 1972-12-28 01:00:03.0  |
> | 1972-12-29 01:00:03.0  |
> | 1972-12-30 01:00:03.0  |
> +------------------------+--+
> 8 rows selected (0.131 seconds)
> 5) Expected result: It should display all dates between the given range



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)