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 D2A68108D3 for ; Mon, 30 Sep 2013 06:50:32 +0000 (UTC) Received: (qmail 3920 invoked by uid 500); 30 Sep 2013 06:49:03 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 3858 invoked by uid 500); 30 Sep 2013 06:48:57 -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 3737 invoked by uid 500); 30 Sep 2013 06:48:35 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 3697 invoked by uid 99); 30 Sep 2013 06:48:27 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Sep 2013 06:48:27 +0000 Date: Mon, 30 Sep 2013 06:48:27 +0000 (UTC) From: "Navis (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-3972) Support using multiple reducer for fetching order by results 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-3972?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13781628#comment-13781628 ] Navis commented on HIVE-3972: ----------------------------- [~ashutoshc] A little. It can be an alternative way to acquire ordered result without sampling. If this would be included, simple select queries can use this by default, because it's simpler than HIVE-3562 and number of reducer also can be calculated automatically in a same way with normal MR. HIVE-3562 would be still useful for making final output files in totally-ordered form. HIVE-3972 is HIVE-4002 for order-by. > Support using multiple reducer for fetching order by results > ------------------------------------------------------------ > > Key: HIVE-3972 > URL: https://issues.apache.org/jira/browse/HIVE-3972 > Project: Hive > Issue Type: Improvement > Components: Query Processor > Reporter: Navis > Assignee: Navis > Priority: Minor > Attachments: HIVE-3972.D8349.1.patch, HIVE-3972.D8349.2.patch, HIVE-3972.D8349.3.patch, HIVE-3972.D8349.4.patch > > > Queries for fetching results which have lastly "order by" clause make final MR run with single reducer, which can be too much. For example, > {code} > select value, sum(key) as sum from src group by value order by sum; > {code} > If number of reducer is reasonable, multiple result files could be merged into single sorted stream in the fetcher level. -- This message was sent by Atlassian JIRA (v6.1#6144)