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 D011FDD21 for ; Fri, 15 Feb 2013 06:27:18 +0000 (UTC) Received: (qmail 14074 invoked by uid 500); 15 Feb 2013 06:27:17 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 13631 invoked by uid 500); 15 Feb 2013 06:27:16 -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 13621 invoked by uid 500); 15 Feb 2013 06:27:16 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 13263 invoked by uid 99); 15 Feb 2013 06:27:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Feb 2013 06:27:15 +0000 Date: Fri, 15 Feb 2013 06:27:15 +0000 (UTC) From: "Navis (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (HIVE-1035) limit can be optimized if the limit is happening on the reducer 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-1035?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Navis resolved HIVE-1035. ------------------------- Resolution: Duplicate Applied option-1 in HIVE-3550 > limit can be optimized if the limit is happening on the reducer > --------------------------------------------------------------- > > Key: HIVE-1035 > URL: https://issues.apache.org/jira/browse/HIVE-1035 > Project: Hive > Issue Type: Bug > Components: Query Processor > Reporter: Namit Jain > > A query like: > select ... from A join B.. limit 10; > where the limit is performed on the reducer can be further optimized. > Currently, all the operators on the reduce side will be done, but the ExecReducer will un-necessarily deserialize all the rows. > The following optimizations can be done: > 1. Do nothing in reduce() in ExecReducer. > 2. Modify map-reduce framework so that it does not even invoke the reduce() method in ExecReducer. > 2. may require some work from hadoop - but we should minimally do 1. -- 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