drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aman Sinha (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DRILL-2019) Filter pushdown into the subquery when the subquery also has a filter is resulting in incorrect results
Date Fri, 16 Jan 2015 01:09:34 GMT

    [ https://issues.apache.org/jira/browse/DRILL-2019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14279633#comment-14279633
] 

Aman Sinha commented on DRILL-2019:
-----------------------------------

There are 2 issues: The filter pushdown does not merge the two Filters together into a single
Filter.  Even with this Drill should have worked correctly but the problem is there's only
1 SelectionVectorRemover.  There should be one corresponding to each Filter. 
BTW, here's a simpler query (with 1 table) to repro the problem: 
{code}
0: jdbc:drill:zk=local> select count(*) from (select o_orderkey, o_custkey from cp.`tpch/orders.parquet`
o where o_custkey < 5)  where o_custkey > 5;
+------------+
|   EXPR$0   |
+------------+
| 50         |
+------------+
1 row selected 
{code}

> Filter pushdown into the subquery when the subquery also has a filter is resulting in
incorrect results
> -------------------------------------------------------------------------------------------------------
>
>                 Key: DRILL-2019
>                 URL: https://issues.apache.org/jira/browse/DRILL-2019
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Execution - Operators, Query Planning & Optimization
>            Reporter: Rahul Challapalli
>            Assignee: Aman Sinha
>            Priority: Critical
>
> git.commit.id.abbrev=b491cdb
> The below query on top of tpch 0.01 data should actually return 0 records. (Verified
with postgres). However drill returns incorrect result
> {code}
> select count(*) from cp.`tpch/lineitem.parquet` l inner join (select o.o_orderkey, o.o_custkey
from cp.`tpch/orders.parquet` o where o.o_custkey < 5) s on l.l_orderkey = s.o_orderkey
and s.o_custkey > 5;
> +------------+
> |   EXPR$0   |
> +------------+
> | 189        |
> +------------+
> {code}
> Marked as 'critical' since drill is reporting incorrect results



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

Mime
View raw message