Return-Path: X-Original-To: apmail-drill-issues-archive@minotaur.apache.org Delivered-To: apmail-drill-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 570F719745 for ; Fri, 25 Mar 2016 03:44:26 +0000 (UTC) Received: (qmail 72178 invoked by uid 500); 25 Mar 2016 03:44:26 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 72144 invoked by uid 500); 25 Mar 2016 03:44:25 -0000 Mailing-List: contact issues-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list issues@drill.apache.org Received: (qmail 72123 invoked by uid 99); 25 Mar 2016 03:44:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Mar 2016 03:44:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 87C702C1F61 for ; Fri, 25 Mar 2016 03:44:25 +0000 (UTC) Date: Fri, 25 Mar 2016 03:44:25 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DRILL-4531) Query with filter and aggregate hangs in planning phase MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DRILL-4531?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15211374#comment-15211374 ] ASF GitHub Bot commented on DRILL-4531: --------------------------------------- Github user jacques-n commented on the pull request: https://github.com/apache/drill/pull/444#issuecomment-201124173 I think there is another bug here. DrillAggregateRel should assert when a none convention is passed in. If you add that assertion where do we fail? We should fix that > Query with filter and aggregate hangs in planning phase > ------------------------------------------------------- > > Key: DRILL-4531 > URL: https://issues.apache.org/jira/browse/DRILL-4531 > Project: Apache Drill > Issue Type: Bug > Components: Query Planning & Optimization > Reporter: Jinfeng Ni > Assignee: Jinfeng Ni > Fix For: 1.7.0 > > > For the following query, > {code} > SELECT cust.custAddress, > lineitem.provider > FROM ( > SELECT cast(c_custkey AS bigint) AS custkey, > c_address AS custAddress > FROM cp.`tpch/customer.parquet` ) cust > LEFT JOIN > ( > SELECT DISTINCT l_linenumber, > CASE > WHEN l_partkey IN (1, 2) THEN 'Store1' > WHEN l_partkey IN (5, 6) THEN 'Store2' > END AS provider > FROM cp.`tpch/lineitem.parquet` > WHERE ( l_orderkey >=20160101 AND l_partkey <=20160301) > AND l_partkey IN (1,2, 5, 6) ) lineitem > ON cust.custkey = lineitem.l_linenumber > WHERE provider IS NOT NULL > GROUP BY cust.custAddress, > lineitem.provider > ORDER BY cust.custAddress, > lineitem.provider; > {code} > When run on today's master branch commit: 79a3c164c1df7a5d7a0b82574316b4a0b1c7593e, query just hangs there in the planning phase. > Log shows that it stuck in Drill_Logical planning phase. > > -- This message was sent by Atlassian JIRA (v6.3.4#6332)