Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 629FD200CC2 for ; Wed, 21 Jun 2017 04:08:55 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 61A91160BEF; Wed, 21 Jun 2017 02:08:55 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9F0F9160BF2 for ; Wed, 21 Jun 2017 04:08:54 +0200 (CEST) Received: (qmail 38772 invoked by uid 500); 21 Jun 2017 02:08:53 -0000 Mailing-List: contact dev-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list dev@drill.apache.org Received: (qmail 38467 invoked by uid 99); 21 Jun 2017 02:08:53 -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; Wed, 21 Jun 2017 02:08:53 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 0340EDFE5C; Wed, 21 Jun 2017 02:08:53 +0000 (UTC) From: paul-rogers To: dev@drill.apache.org Reply-To: dev@drill.apache.org References: In-Reply-To: Subject: [GitHub] drill pull request #840: DRILL-5517: Size-aware set methods in value vectors Content-Type: text/plain Message-Id: <20170621020853.0340EDFE5C@git1-us-west.apache.org> Date: Wed, 21 Jun 2017 02:08:53 +0000 (UTC) archived-at: Wed, 21 Jun 2017 02:08:55 -0000 Github user paul-rogers commented on a diff in the pull request: https://github.com/apache/drill/pull/840#discussion_r123129149 --- Diff: exec/memory/base/src/main/java/io/netty/buffer/UnsafeDirectLittleEndian.java --- @@ -174,6 +175,40 @@ public ByteBuf setDouble(int index, double value) { return this; } + // Clone of the super class checkIndex, but this version returns a boolean rather + // than throwing an exception. + + protected boolean hasCapacity(int index, int fieldLength) { + if (fieldLength < 0) { --- End diff -- Fixed --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---