Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-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 6DE9810225 for ; Wed, 23 Oct 2013 20:48:38 +0000 (UTC) Received: (qmail 51143 invoked by uid 500); 23 Oct 2013 20:46:18 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 51044 invoked by uid 500); 23 Oct 2013 20:46:16 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 50834 invoked by uid 99); 23 Oct 2013 20:46:04 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Oct 2013 20:46:04 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 9C8E31D36A1; Wed, 23 Oct 2013 20:46:02 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============7083444597694050659==" MIME-Version: 1.0 Subject: Review Request 14887: Subquery support: disallow nesting of SubQueries From: "Harish Butani" To: "Ashutosh Chauhan" Cc: "Harish Butani" , "hive" Date: Wed, 23 Oct 2013 20:46:02 -0000 Message-ID: <20131023204602.3657.44671@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Harish Butani" X-ReviewGroup: hive X-ReviewRequest-URL: https://reviews.apache.org/r/14887/ X-Sender: "Harish Butani" Reply-To: "Harish Butani" --===============7083444597694050659== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/14887/ ----------------------------------------------------------- Review request for hive and Ashutosh Chauhan. Bugs: HIVE-5613 https://issues.apache.org/jira/browse/HIVE-5613 Repository: hive-git Description ------- This is Restriction 9 from the SubQuery design doc: We will not do algebraic transformations for these kinds of queries: {noformat} -query 1 select ... from x where x.b in (select u from y where y.c = 10 and exists (select m from z where z.A = x.C) ) - query 2 select ... from x where x.b in (select u from y where y.c = 10 and exists (select m from z where z.A = y.D) {noformat} Diffs ----- ql/src/java/org/apache/hadoop/hive/ql/parse/QB.java 50b5a77 ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java 6fc3cd5 ql/src/java/org/apache/hadoop/hive/ql/parse/SubQueryUtils.java 2d7775c ql/src/test/queries/clientnegative/subquery_nested_subquery.q PRE-CREATION ql/src/test/results/clientnegative/subquery_nested_subquery.q.out PRE-CREATION Diff: https://reviews.apache.org/r/14887/diff/ Testing ------- tested subquery tests added new subquery_nested_subquery.q negative test Thanks, Harish Butani --===============7083444597694050659==--