Return-Path: X-Original-To: apmail-drill-dev-archive@www.apache.org Delivered-To: apmail-drill-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 57E7D172D3 for ; Tue, 17 Mar 2015 00:00:49 +0000 (UTC) Received: (qmail 66580 invoked by uid 500); 17 Mar 2015 00:00:49 -0000 Delivered-To: apmail-drill-dev-archive@drill.apache.org Received: (qmail 66526 invoked by uid 500); 17 Mar 2015 00:00:49 -0000 Mailing-List: contact dev-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 dev@drill.apache.org Received: (qmail 66475 invoked by uid 99); 17 Mar 2015 00:00:49 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Mar 2015 00:00:49 +0000 Date: Tue, 17 Mar 2015 00:00:48 +0000 (UTC) From: "Aman Sinha (JIRA)" To: dev@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (DRILL-2479) Correlated EXISTS containing an IN subquery fails to plan MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Aman Sinha created DRILL-2479: --------------------------------- Summary: Correlated EXISTS containing an IN subquery fails to plan Key: DRILL-2479 URL: https://issues.apache.org/jira/browse/DRILL-2479 Project: Apache Drill Issue Type: Bug Affects Versions: 0.8.0 Reporter: Aman Sinha Assignee: Aman Sinha Fix For: 0.9.0 The following correlated EXISTS query gives a CannotPlanException : {code} select count(*) from lineitem l where exists (select ps.ps_suppkey from partsupp ps where ps.ps_suppkey = l.l_suppkey and ps.ps_partkey in (select p.p_partkey from part p)); {code} The query succeeds if the IN clause in the EXISTS subquery is removed or replaced with an IN list of constants. It also succeeds on the latest version of Calcite. Drill is quite out of date with Calcite and there were decorrelation related changes in Calcite sometime mid to late 2014. This issue should get resolved once Drill is rebased on recent Calcite. -- This message was sent by Atlassian JIRA (v6.3.4#6332)