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 52FD117251 for ; Fri, 16 Oct 2015 12:46:08 +0000 (UTC) Received: (qmail 64971 invoked by uid 500); 16 Oct 2015 12:46:05 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 64945 invoked by uid 500); 16 Oct 2015 12:46:05 -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 64882 invoked by uid 99); 16 Oct 2015 12:46:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Oct 2015 12:46:05 +0000 Date: Fri, 16 Oct 2015 12:46:05 +0000 (UTC) From: "Hive QA (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-11954) Extend logic to choose side table in MapJoin Conversion algorithm 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-11954?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14960609#comment-14960609 ] Hive QA commented on HIVE-11954: -------------------------------- Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12766757/HIVE-11954.10.patch {color:red}ERROR:{color} -1 due to no test(s) being added or modified. {color:red}ERROR:{color} -1 due to 2 failed/errored test(s), 9694 tests executed *Failed tests:* {noformat} org.apache.hive.hcatalog.api.TestHCatClient.testTableSchemaPropagation org.apache.hive.jdbc.TestSSL.testSSLVersion {noformat} Test results: http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-TRUNK-Build/5675/testReport Console output: http://ec2-174-129-184-35.compute-1.amazonaws.com/jenkins/job/PreCommit-HIVE-TRUNK-Build/5675/console Test logs: http://ec2-174-129-184-35.compute-1.amazonaws.com/logs/PreCommit-HIVE-TRUNK-Build-5675/ Messages: {noformat} Executing org.apache.hive.ptest.execution.TestCheckPhase Executing org.apache.hive.ptest.execution.PrepPhase Executing org.apache.hive.ptest.execution.ExecutionPhase Executing org.apache.hive.ptest.execution.ReportingPhase Tests exited with: TestsFailedException: 2 tests failed {noformat} This message is automatically generated. ATTACHMENT ID: 12766757 - PreCommit-HIVE-TRUNK-Build > Extend logic to choose side table in MapJoin Conversion algorithm > ----------------------------------------------------------------- > > Key: HIVE-11954 > URL: https://issues.apache.org/jira/browse/HIVE-11954 > Project: Hive > Issue Type: Bug > Components: Physical Optimizer > Affects Versions: 2.0.0 > Reporter: Jesus Camacho Rodriguez > Assignee: Jesus Camacho Rodriguez > Attachments: HIVE-11954.01.patch, HIVE-11954.02.patch, HIVE-11954.03.patch, HIVE-11954.04.patch, HIVE-11954.05.patch, HIVE-11954.06.patch, HIVE-11954.07.patch, HIVE-11954.08.patch, HIVE-11954.09.patch, HIVE-11954.10.patch, HIVE-11954.patch, HIVE-11954.patch > > > Selection of side table (in memory/hash table) in MapJoin Conversion algorithm needs to be more sophisticated. > In an N way Map Join, Hive should pick an input stream as side table (in memory table) that has least cost in producing relation (like TS(FIL|Proj)*). > Cost based choice needs extended cost model; without return path its going to be hard to do this. > For the time being we could employ a modified cost based algorithm for side table selection. > New algorithm is described below: > 1. Identify the candidate set of inputs for side table (in memory/hash table) from the inputs (based on conditional task size) > 2. For each of the input identify its cost, memory requirement. Cost is 1 for each heavy weight relation op (Join, GB, PTF/Windowing, TF, etc.). Cost for an input is the total no of heavy weight ops in its branch. > 3. Order set from #1 on cost & memory req (ascending order) > 4. Pick the first element from #3 as the side table. -- This message was sent by Atlassian JIRA (v6.3.4#6332)