You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/07/21 06:22:20 UTC
[jira] [Commented] (DRILL-4794) Regression: Wrong result for query
with disjunctive partition filters
[ https://issues.apache.org/jira/browse/DRILL-4794?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15387235#comment-15387235 ]
ASF GitHub Bot commented on DRILL-4794:
---------------------------------------
GitHub user amansinha100 opened a pull request:
https://github.com/apache/drill/pull/550
DRILL-4794: Fix a premature exit of the outer loop during pruning.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/amansinha100/incubator-drill DRILL-4794
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/drill/pull/550.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #550
----
commit c13eee3c6c295ddc09c83476c039500ebd3dee72
Author: Aman Sinha <as...@maprtech.com>
Date: 2016-07-21T05:36:02Z
DRILL-4794: Fix a premature exit of the outer loop during pruning.
----
> 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)