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 B7EDA10A8A for ; Sat, 26 Oct 2013 02:24:31 +0000 (UTC) Received: (qmail 90571 invoked by uid 500); 26 Oct 2013 02:24:31 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 90526 invoked by uid 500); 26 Oct 2013 02:24:30 -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 90517 invoked by uid 500); 26 Oct 2013 02:24:30 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 90514 invoked by uid 99); 26 Oct 2013 02:24:30 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Oct 2013 02:24:30 +0000 Date: Sat, 26 Oct 2013 02:24:30 +0000 (UTC) From: "Sergey Shelukhin (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-5503) TopN optimization in VectorReduceSink 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-5503?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13805966#comment-13805966 ] Sergey Shelukhin commented on HIVE-5503: ---------------------------------------- I have basically moved a lot of logic around TopN from ReduceSink to TopNHash, so TopNHash itself can handle flushing, disabling etc. Also, the different behavior for different cases is now covered by a small private interface, not by entire class, so it doesn't have to be visible outside. Finally, after that, vectorized batch processing has been added. It adds all keys to heap; then forwards or stores values for the keys that survived in the heap, same way as for single case. > TopN optimization in VectorReduceSink > ------------------------------------- > > Key: HIVE-5503 > URL: https://issues.apache.org/jira/browse/HIVE-5503 > Project: Hive > Issue Type: Sub-task > Reporter: Jitendra Nath Pandey > Assignee: Sergey Shelukhin > Attachments: HIVE-5503.patch > > > We need to add TopN optimization to VectorReduceSink as well, it would be great if ReduceSink and VectorReduceSink share this code. -- This message was sent by Atlassian JIRA (v6.1#6144)