Return-Path: X-Original-To: apmail-hive-issues-archive@minotaur.apache.org Delivered-To: apmail-hive-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 AF0CA180A2 for ; Tue, 10 Nov 2015 17:10:11 +0000 (UTC) Received: (qmail 69895 invoked by uid 500); 10 Nov 2015 17:10:11 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 69857 invoked by uid 500); 10 Nov 2015 17:10:11 -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 69837 invoked by uid 99); 10 Nov 2015 17:10:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Nov 2015 17:10:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 7ECF12C0452 for ; Tue, 10 Nov 2015 17:10:11 +0000 (UTC) Date: Tue, 10 Nov 2015 17:10:11 +0000 (UTC) From: "Jesus Camacho Rodriguez (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-12017) Do not disable CBO by default when number of joins in a query is equal or less than 1 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/HIVE-12017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14998913#comment-14998913 ] Jesus Camacho Rodriguez commented on HIVE-12017: ------------------------------------------------ Thanks a lot for the comments [~ashutoshc] and for categorizing the changes. 1) should not be a big issue, at least for the moment. 3) should be an issue only if it is really a performance loss. For instance, I check some plans and what was happening was that transitive propagation was more advanced in Calcite, thus we were pruning both join inputs and we ended up with a cartesian product. I agree 2) and 5) are specially concerning, since they lead to correctness issues; I'll explore those ones further and update the issue/create new issues. At least the fixes to correctness issues should be checked in before applying this patch. > Do not disable CBO by default when number of joins in a query is equal or less than 1 > ------------------------------------------------------------------------------------- > > Key: HIVE-12017 > URL: https://issues.apache.org/jira/browse/HIVE-12017 > Project: Hive > Issue Type: Improvement > Components: CBO > Affects Versions: 2.0.0 > Reporter: Jesus Camacho Rodriguez > Assignee: Jesus Camacho Rodriguez > Attachments: HIVE-12017.01.patch, HIVE-12017.02.patch, HIVE-12017.03.patch, HIVE-12017.04.patch, HIVE-12017.05.patch, HIVE-12017.06.patch, HIVE-12017.07.patch, HIVE-12017.08.patch > > > Instead, we could disable some parts of CBO that are not relevant if the query contains 1 or 0 joins. Implementation should be able to define easily other query patterns for which we might disable some parts of CBO (in case we want to do it in the future). -- This message was sent by Atlassian JIRA (v6.3.4#6332)