SHREELEKHYA GAMPA created CARBONDATA-4173:
---------------------------------------------

             Summary: Fix inverted index query issue
                 Key: CARBONDATA-4173
                 URL: https://issues.apache.org/jira/browse/CARBONDATA-4173
             Project: CarbonData
          Issue Type: Bug
            Reporter: SHREELEKHYA GAMPA


 select query with filter column which is present in inverted_index column does 
not return any value

>From Spark beeline/SQL/Shell execute the following queries

drop table if exists uniqdata6;

CREATE TABLE uniqdata6(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 as carbondata TBLPROPERTIES ('sort_columns'='CUST_ID,CUST_NAME', 
'inverted_index'='CUST_ID,CUST_NAME','sort_scope'='global_sort');

LOAD DATA INPATH 'hdfs://hacluster/chetan/2000_UniqData.csv' into table 
uniqdata6 OPTIONS ('FILEHEADER'='CUST_ID,CUST_NAME 
,ACTIVE_EMUI_VERSION,DOB,DOJ, 
BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1, 
Double_COLUMN2,INTEGER_COLUMN1','BAD_RECORDS_ACTION'='FORCE');

select cust_name from uniqdata6 limit 5;

select * from uniqdata6 where CUST_NAME='CUST_NAME_00002';

select * from uniqdata6 where CUST_NAME='CUST_NAME_00003';

 

[Expected Result] :- select query with filter column which is present in 
inverted_index column should return correct value

[Actual Issue] : - select query with filter column which is present in 
inverted_index column does not return any value

[!https://clouddevops.huawei.com/vision-file-storage/api/file/download/upload-v2/2021/3/15/c71035/05443c9a9c11457e947645f1cf0ad347/image.png!|https://clouddevops.huawei.com/vision-file-storage/api/file/download/upload-v2/2021/3/15/c71035/05443c9a9c11457e947645f1cf0ad347/image.png]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to