[jira] [Created] (CARBONDATA-603) Unable to use filter with Date Data Type

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

[jira] [Created] (CARBONDATA-603) Unable to use filter with Date Data Type

Akash R Nilugal (Jira)
Anurag Srivastava created CARBONDATA-603:
--------------------------------------------

             Summary: Unable to use filter with Date Data Type
                 Key: CARBONDATA-603
                 URL: https://issues.apache.org/jira/browse/CARBONDATA-603
             Project: CarbonData
          Issue Type: Bug
          Components: data-query
    Affects Versions: 1.0.0-incubating
            Reporter: Anurag Srivastava
         Attachments: Date.png

I am creating table with *DATE* Data Type and loading data with CSV into the table.

After that as I run the select query with *WHERE* clause, it converted value as NULL and provide me result with Null Value.

*Create Table :*   CREATE TABLE uniqdata (CUST_ID int,CUST_NAME char(30),ACTIVE_EMUI_VERSION string, DOB date, DOJ date, 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");

*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');

*Select Query :* Select cust_id, cust_name, dob from uniqdata where dob='1975-06-22';


It is working fine on hive. I am attaching CSV
 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)