You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Aman Sinha (JIRA)" <ji...@apache.org> on 2016/07/21 05:14:20 UTC
[jira] [Created] (DRILL-4794) Regression: Wrong result for query
with disjunctive partition filters
Aman Sinha created DRILL-4794:
---------------------------------
Summary: 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
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)