Vandana Yadav created CARBONDATA-869:
----------------------------------------

             Summary: Greater than operator(>) does not display correct result 
for some attribute in range filter
                 Key: CARBONDATA-869
                 URL: https://issues.apache.org/jira/browse/CARBONDATA-869
             Project: CarbonData
          Issue Type: Bug
          Components: data-query
         Environment: spark 2.1
            Reporter: Vandana Yadav
            Priority: Minor
         Attachments: 2000_UniqData.csv

Greater than operator(>) does not display accurate result for some attributes 
in  range filter

Steps to reproduces:
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 in a table:
LOAD DATA INPATH 'HDFS_URL/BabuStore/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: Run the Query.
select dob  from uniqdata where dob > '1974-12-25' and dob <  '1975';
4:Result on beeline:
+------------------------+--+
|          dob           |
+------------------------+--+
| 1974-12-25 01:00:03.0  |
| 1974-12-26 01:00:03.0  |
| 1974-12-27 01:00:03.0  |
| 1974-12-28 01:00:03.0  |
| 1974-12-29 01:00:03.0  |
| 1974-12-30 01:00:03.0  |
| 1974-12-31 01:00:03.0  |
+------------------------+--+
7 rows selected (0.132 seconds)
Expected Result: resultset should include dates from "1974-12-26 to 1974-12-31" 
and exclude "1974-12-25"



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

Reply via email to