Return-Path: X-Original-To: apmail-hive-commits-archive@www.apache.org Delivered-To: apmail-hive-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9FCB9175F6 for ; Mon, 25 May 2015 22:21:15 +0000 (UTC) Received: (qmail 6124 invoked by uid 500); 25 May 2015 22:21:15 -0000 Delivered-To: apmail-hive-commits-archive@hive.apache.org Received: (qmail 6075 invoked by uid 500); 25 May 2015 22:21:15 -0000 Mailing-List: contact commits-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hive-dev@hive.apache.org Delivered-To: mailing list commits@hive.apache.org Received: (qmail 6063 invoked by uid 99); 25 May 2015 22:21:15 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 May 2015 22:21:15 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 529D3E0215; Mon, 25 May 2015 22:21:15 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: mmccline@apache.org To: commits@hive.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: hive git commit: HIVE-10805: OOM in vectorized reduce (Matt McCline reviewed by Gopal V) Date: Mon, 25 May 2015 22:21:15 +0000 (UTC) Repository: hive Updated Branches: refs/heads/master d66a7347a -> 93b55886c HIVE-10805: OOM in vectorized reduce (Matt McCline reviewed by Gopal V) Project: http://git-wip-us.apache.org/repos/asf/hive/repo Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/93b55886 Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/93b55886 Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/93b55886 Branch: refs/heads/master Commit: 93b55886c4629d199bebf8ee0b369d2b3a0cde57 Parents: d66a734 Author: Matt McCline Authored: Mon May 25 15:21:04 2015 -0700 Committer: Matt McCline Committed: Mon May 25 15:21:04 2015 -0700 ---------------------------------------------------------------------- .../hadoop/hive/ql/exec/vector/BytesColumnVector.java | 9 +++++++++ 1 file changed, 9 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hive/blob/93b55886/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/BytesColumnVector.java ---------------------------------------------------------------------- diff --git a/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/BytesColumnVector.java b/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/BytesColumnVector.java index 0552b0c..8ec7ead 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/BytesColumnVector.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/BytesColumnVector.java @@ -80,6 +80,15 @@ public class BytesColumnVector extends ColumnVector { length = new int[size]; } + /** + * Additional reset work for BytesColumnVector (releasing scratch bytes for by value strings). + */ + @Override + public void reset() { + super.reset(); + initBuffer(0); + } + /** Set a field by reference. * * @param elementNum index within column vector to set