i verified in the current master. This scenario is working. Please resolve this issue.
> Like operator is not working properly
> -------------------------------------
>
> Key: CARBONDATA-788
> URL:
https://issues.apache.org/jira/browse/CARBONDATA-788> Project: CarbonData
> Issue Type: Bug
> Components: data-query
> Affects Versions: 1.1.0
> Environment: spark 2.1
> Reporter: Geetika Gupta
> Assignee: Rahul Kumar
> Priority: Trivial
> Attachments: 2000_UniqData.csv
>
>
> I tried to create a table using the following command:
> CREATE TABLE uniqdata_INC(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';
> Load command for the table :
> LOAD DATA INPATH 'hdfs://localhost:54311/BabuStore/DATA/uniqdata/2000_UniqData.csv' into table uniqdata_INC OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1');
> When I performed the below query on the table using 'like' operator, it displayed no results.
> select cust_id from uniqdata_INC where cust_id like 8999;
> Result:
> +----------+--+
> | cust_id |
> +----------+--+
> +----------+--+
> No rows selected (0.515 seconds)
> PFA the csv used for input data.