http://apache-carbondata-dev-mailing-list-archive.168.s1.nabble.com/jira-Resolved-CARBONDATA-4046-Select-count-fails-on-partition-table-tp104195.html
Kunal Kapoor resolved CARBONDATA-4046.
> Select count(*) fails on partition table.
> -----------------------------------------
>
> Key: CARBONDATA-4046
> URL:
https://issues.apache.org/jira/browse/CARBONDATA-4046> Project: CarbonData
> Issue Type: Bug
> Reporter: Nihal kumar ojha
> Priority: Major
> Fix For: 2.1.1
>
> Time Spent: 1h 50m
> Remaining Estimate: 0h
>
> Steps to reproduce
> 1. set property `carbon.read.partition.hive.direct=false`
> 2. Create table which contain more than one partition column.
> 3. run query select count (*)
>
> It fails with exception as `Key not found`.
>
> create table partition_cache(a string) partitioned by(b int, c String) stored as carbondata;
> insert into partition_cache select 'k',1,'nihal';
> select count(*) from partition_cache where b = 1;