Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 54E57200BD4 for ; Fri, 16 Dec 2016 17:01:03 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 53734160B32; Fri, 16 Dec 2016 16:01:03 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9ED61160B10 for ; Fri, 16 Dec 2016 17:01:02 +0100 (CET) Received: (qmail 55157 invoked by uid 500); 16 Dec 2016 16:01:01 -0000 Mailing-List: contact issues-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 issues@hive.apache.org Received: (qmail 55129 invoked by uid 99); 16 Dec 2016 16:01:01 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Dec 2016 16:01:01 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id B97602C03E2 for ; Fri, 16 Dec 2016 16:01:01 +0000 (UTC) Date: Fri, 16 Dec 2016 16:01:01 +0000 (UTC) From: "Ashutosh Chauhan (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-15192) Use Calcite to de-correlate and plan subqueries MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 16 Dec 2016 16:01:03 -0000 [ https://issues.apache.org/jira/browse/HIVE-15192?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15754801#comment-15754801 ] Ashutosh Chauhan commented on HIVE-15192: ----------------------------------------- Need to revert default value flip for semijoin conversion in HiveConf. Also, patch doesn't apply cleanly, can you rebase it? > Use Calcite to de-correlate and plan subqueries > ----------------------------------------------- > > Key: HIVE-15192 > URL: https://issues.apache.org/jira/browse/HIVE-15192 > Project: Hive > Issue Type: Task > Components: Logical Optimizer > Reporter: Vineet Garg > Assignee: Vineet Garg > Labels: sub-query > Attachments: HIVE-15192.10.patch, HIVE-15192.2.patch, HIVE-15192.3.patch, HIVE-15192.4.patch, HIVE-15192.5.patch, HIVE-15192.6.patch, HIVE-15192.7.patch, HIVE-15192.8.patch, HIVE-15192.9.patch, HIVE-15192.patch > > > HIVE currently tranform subqueries into SEMI-JOIN or LEFT OUTER JOIN. This transformation occurs on query AST before generating logical plan. These transformations are described at [Link to original spec | https://issues.apache.org/jira/secure/attachment/12614003/SubQuerySpec.pdf]. Such transformations aren't able to handle a lot of subqueries, as a result HIVE imposes various restrictions on the type of queries it could handle e.g. Hive disallows nested subqueries. All current restrictions are detailed in above linked document. > This patch is 1st phase of getting rid of these transformations and leverage Calcite's functionality to plan such queries. > Next phases will be lifting restrictions one by one. > Note that this patch already lifts one restriction *Restriction.6.m* (The LHS in a SubQuery must have all its Column References be qualified) > Known issues with this patch are: > * Return path tests fails for various reasons and are currently disabled. We plan to fix and re-enable this later. > * Semi-join optimization (HIVE-15227) is disabled by default as it doesn't work with this patch. We plan to fix this and re-enable it by default. -- This message was sent by Atlassian JIRA (v6.3.4#6332)