From dev-return-146336-archive-asf-public=cust-asf.ponee.io@hive.apache.org Fri Feb 16 00:31:09 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id AD65918064A for ; Fri, 16 Feb 2018 00:31:08 +0100 (CET) Received: (qmail 96502 invoked by uid 500); 15 Feb 2018 23:31:07 -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 96491 invoked by uid 99); 15 Feb 2018 23:31:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Feb 2018 23:31:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id EB44DC01A9 for ; Thu, 15 Feb 2018 23:31:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.311 X-Spam-Level: X-Spam-Status: No, score=-110.311 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id Kp3eV368mElp for ; Thu, 15 Feb 2018 23:31:06 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 40DF65F30B for ; Thu, 15 Feb 2018 23:31:05 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 642AEE0231 for ; Thu, 15 Feb 2018 23:31:03 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 1D08921E5E for ; Thu, 15 Feb 2018 23:31:01 +0000 (UTC) Date: Thu, 15 Feb 2018 23:31:01 +0000 (UTC) From: "Vineet Garg (JIRA)" To: dev@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HIVE-18724) Improve error handling for subqueries referencing columns(correlated) of it's grand-parent query MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Vineet Garg created HIVE-18724: ---------------------------------- Summary: Improve error handling for subqueries referencing col= umns(correlated) of it's grand-parent query Key: HIVE-18724 URL: https://issues.apache.org/jira/browse/HIVE-18724 Project: Hive Issue Type: Improvement Components: Query Planning Reporter: Vineet Garg Currently Hive doesn't allow correlated subqueries which refer to columns o= f grand parent query e.g. {code:sql} select t1.a from t t1 where t1.b IN (select t2.c from t t2 where t2.a IN (s= elect max(t3.b) from t t3, t t4 where t3.a=3Dt2.a and t3.b=3Dt1.b)) =C2=A0{code} In this example inner most query has column reference {{t3.b=3Dt1.b}} where= {{t1.b}} references outer most query. The error which Hive compiler throw is=20 {noformat} FAILED: SemanticException Line 0:-1 Unsupported SubQuery Expression 'a': Ne= sted SubQuery expressions are not supported. {format} This is very misleading since Hive does support Nested subqueries. -- This message was sent by Atlassian JIRA (v7.6.3#76005)