[
https://issues.apache.org/jira/browse/CARBONDATA-3178?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16724738#comment-16724738
]
MANISH NALLA commented on CARBONDATA-3178:
------------------------------------------
The behaviour is same as Hive. Please check.
> select query with in clause on timestamp column inconsistent with filter on
> same column
> ---------------------------------------------------------------------------------------
>
> Key: CARBONDATA-3178
> URL: https://issues.apache.org/jira/browse/CARBONDATA-3178
> Project: CarbonData
> Issue Type: Bug
> Components: data-query
> Affects Versions: 1.5.1
> Environment: spark 2.2
> Reporter: Anshul Topnani
> Priority: Minor
>
> Steps :
> 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,36),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1
> int) STORED BY 'org.apache.carbondata.format' ;
> Load Data :
> LOAD DATA INPATH 'hdfs://hacluster/chetan/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 Queries:
> select * from uniqdata where dob in ('1970-01-01 01:00:03.0');
> +----------+------------+----------------------+------+------+-----------------+-----------------+------------------+------------------+-----------------+-----------------+------------------+--+
> | cust_id | cust_name | active_emui_version | dob | doj | bigint_column1 |
> bigint_column2 | decimal_column1 | decimal_column2 | double_column1 |
> double_column2 | integer_column1 |
> +----------+------------+----------------------+------+------+-----------------+-----------------+------------------+------------------+-----------------+-----------------+------------------+--+
> +----------+------------+----------------------+------+------+-----------------+-----------------+------------------+------------------+-----------------+-----------------+------------------+--+
> No rows selected (0.702 seconds)
> select * from uniqdata where dob ='1970-01-01 01:00:03.0';
> +----------+------------------+----------------------------+------------------------+------------------------+-----------------+-----------------+-------------------------+------------------+----------------------+-----------------------+------------------+--+
> | cust_id | cust_name | active_emui_version | dob | doj | bigint_column1 |
> bigint_column2 | decimal_column1 | decimal_column2 | double_column1 |
> double_column2 | integer_column1 |
> +----------+------------------+----------------------------+------------------------+------------------------+-----------------+-----------------+-------------------------+------------------+----------------------+-----------------------+------------------+--+
> | 9000 | CUST_NAME_00000 | ACTIVE_EMUI_VERSION_00000 | 1970-01-01 01:00:03.0
> | 1970-01-01 02:00:03.0 | 123372036854 | -223372036854 |
> 12345678901.1234000000 | NULL | 1.12345674897976E10 | -1.12345674897976E10 |
> 1 |
> +----------+------------------+----------------------------+------------------------+------------------------+-----------------+-----------------+-------------------------+------------------+----------------------+-----------------------+------------------+--+
> 1 row selected (0.57 seconds)
>
> Actual Issue :
> Correct data is projected in case of filter query with '='. For same column
> with in clause, no data is projected.
> Expected :
> Both the select queries should show correct result. (As projected in second
> select query).
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)