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 1F9A42009F3 for ; Fri, 20 May 2016 22:35:27 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 1972F160A25; Fri, 20 May 2016 20:35:27 +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 58F061607AA for ; Fri, 20 May 2016 22:35:26 +0200 (CEST) Received: (qmail 78936 invoked by uid 500); 20 May 2016 20:35:25 -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 78924 invoked by uid 99); 20 May 2016 20:35:25 -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; Fri, 20 May 2016 20:35:25 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 44E57DFABB; Fri, 20 May 2016 20:35:24 +0000 (UTC) From: amansinha100 To: dev@drill.apache.org Reply-To: dev@drill.apache.org References: In-Reply-To: Subject: [GitHub] drill pull request: DRILL-4679: When convert() functions are prese... Content-Type: text/plain Message-Id: <20160520203524.44E57DFABB@git1-us-west.apache.org> Date: Fri, 20 May 2016 20:35:24 +0000 (UTC) archived-at: Fri, 20 May 2016 20:35:27 -0000 Github user amansinha100 commented on a diff in the pull request: https://github.com/apache/drill/pull/504#discussion_r64103528 --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/physical/impl/project/ProjectRecordBatch.java --- @@ -146,6 +159,27 @@ protected IterOutcome doWork() { if (next == IterOutcome.OUT_OF_MEMORY) { outOfMemory = true; return next; + } else if (next == IterOutcome.NONE) { + // since this is first batch and we already got a NONE, need to set up the schema + + //allocate vv in the allocationVectors. + for (final ValueVector v : this.allocationVectors) { --- End diff -- Updated PR to address review comment regarding doAlloc(). --- 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. ---