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 0348A9017 for ; Wed, 6 Mar 2013 23:32:14 +0000 (UTC) Received: (qmail 96384 invoked by uid 500); 6 Mar 2013 23:32:13 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 96301 invoked by uid 500); 6 Mar 2013 23:32:13 -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 96291 invoked by uid 500); 6 Mar 2013 23:32:13 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 96288 invoked by uid 99); 6 Mar 2013 23:32:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Mar 2013 23:32:13 +0000 Date: Wed, 6 Mar 2013 23:32:13 +0000 (UTC) From: "Gopal V (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-4078) Delay the serialize-deserialize pair in CommonJoinResolver 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-4078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13595280#comment-13595280 ] Gopal V commented on HIVE-4078: ------------------------------- Improvements are obvious and fast hive> show tables; ... Time taken: 3.139 seconds, Fetched: 69 row(s) hive> source query27.sql; Time taken: 1.266 seconds, Fetched: 236 row(s) hive> source query27.sql; Time taken: 0.36 seconds, Fetched: 236 row(s) > Delay the serialize-deserialize pair in CommonJoinResolver > ---------------------------------------------------------- > > Key: HIVE-4078 > URL: https://issues.apache.org/jira/browse/HIVE-4078 > Project: Hive > Issue Type: Bug > Components: Query Processor > Reporter: Gopal V > Assignee: Gopal V > Attachments: HIVE-4078-20130305.2.patch, HIVE-4078-20130305.patch, HIVE-4078-20130406.patch > > > CommonJoinProcessor tries to clone a MapredWork while attempting a conversion to a map-join > {code} > // deep copy a new mapred work from xml > InputStream in = new ByteArrayInputStream(xml.getBytes("UTF-8")); > MapredWork newWork = Utilities.deserializeMapRedWork(in, physicalContext.getConf()); > {code} > which is a very heavy operation memory wise & cpu-wise. > It would be better to do this only if a conditional task is required, resulting in a copy of the task. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira