[ 
https://issues.apache.org/jira/browse/DRILL-4794?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Aman Sinha resolved DRILL-4794.
-------------------------------
       Resolution: Fixed
    Fix Version/s: 1.8.0

Fixed in commit #: 4377670

> Regression: Wrong result for query with disjunctive partition filters
> ---------------------------------------------------------------------
>
>                 Key: DRILL-4794
>                 URL: https://issues.apache.org/jira/browse/DRILL-4794
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Query Planning & Optimization
>    Affects Versions: 1.7.0
>            Reporter: Aman Sinha
>            Assignee: Aman Sinha
>             Fix For: 1.8.0
>
>
> For a query that contains certain types of disjunctive filter conditions such 
> as 'dir0=x OR dir1=y'  we get wrong result when metadata caching is used.  
> This is a regression due to DRILL-4530.  
> Note that the filter involves OR of 2 different directory levels. For the 
> normal case of OR condition at the same level the problem does not occur. 
> Correct result (without metadata cache) 
> {noformat}
> 0: jdbc:drill:zk=local> select count(*) from dfs.`orders` where dir0=1994 or 
> dir1='Q3' ;
> +---------+
> | EXPR$0  |
> +---------+
> | 60      |
> +---------+
> {noformat}
> Wrong result (with metadata cache):
> {noformat}
> 0: jdbc:drill:zk=local> select count(*) from dfs.`orders` where dir0=1994 or 
> dir1='Q3' ;
> +---------+
> | EXPR$0  |
> +---------+
> | 50      |
> +---------+
> {noformat}



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

Reply via email to