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 7743210CBD for ; Fri, 25 Oct 2013 00:05:02 +0000 (UTC) Received: (qmail 14875 invoked by uid 500); 25 Oct 2013 00:05:01 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 14826 invoked by uid 500); 25 Oct 2013 00:05:01 -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 14818 invoked by uid 500); 25 Oct 2013 00:05:01 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 14814 invoked by uid 99); 25 Oct 2013 00:05:01 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Oct 2013 00:05:01 +0000 Date: Fri, 25 Oct 2013 00:05:01 +0000 (UTC) From: "Navis (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-5598) Remove dummy new line at the end of non-sql commands 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-5598?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Navis updated HIVE-5598: ------------------------ Status: Open (was: Patch Available) > Remove dummy new line at the end of non-sql commands > ---------------------------------------------------- > > Key: HIVE-5598 > URL: https://issues.apache.org/jira/browse/HIVE-5598 > Project: Hive > Issue Type: Bug > Reporter: Navis > Assignee: Navis > Priority: Trivial > Attachments: HIVE-5598.1.patch.txt, HIVE-5598.2.patch.txt > > > In Driver.java > {noformat} > ss = Utilities.readColumn(resStream, bos); > if (bos.getCount() > 0) { > row = new String(bos.getData(), 0, bos.getCount(), "UTF-8"); > } else if (ss == Utilities.StreamStatus.TERMINATED) { > row = new String(); > } > if (row != null) { > numRows++; > res.add(row); > } > {noformat} > last line would be added once more after EOF. -- This message was sent by Atlassian JIRA (v6.1#6144)