Return-Path: X-Original-To: apmail-hive-issues-archive@minotaur.apache.org Delivered-To: apmail-hive-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 80B0317480 for ; Thu, 21 May 2015 15:18:17 +0000 (UTC) Received: (qmail 95689 invoked by uid 500); 21 May 2015 15:18:17 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 95667 invoked by uid 500); 21 May 2015 15:18:17 -0000 Mailing-List: contact issues-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 issues@hive.apache.org Received: (qmail 95657 invoked by uid 99); 21 May 2015 15:18:17 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 May 2015 15:18:17 +0000 Date: Thu, 21 May 2015 15:18:17 +0000 (UTC) From: "Chinna Rao Lalam (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-10784) Beeline requires new line (EOL) at the end of an Hive SQL script (NullPointerException) 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-10784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14554504#comment-14554504 ] Chinna Rao Lalam commented on HIVE-10784: ----------------------------------------- Hi [~biosetup], Scenario 1 and 3 able to reproduce and 2 is not reproducing, can you upload a script file for scenario 2. Attached a workaround patch to fix scenario 1. > Beeline requires new line (EOL) at the end of an Hive SQL script (NullPointerException) > --------------------------------------------------------------------------------------- > > Key: HIVE-10784 > URL: https://issues.apache.org/jira/browse/HIVE-10784 > Project: Hive > Issue Type: Bug > Components: Beeline, CLI > Affects Versions: 0.13.1 > Environment: Linux 2.6.32 (Red Hat 4.4.7) > Reporter: Andrey Dmitriev > Priority: Minor > Attachments: HIVE-10784.patch > > > Beeline tool requires to have "new line" at the end of a Hive/Impala SQL script otherwise the last statement will be not executed or NullPointerException will be thrown. > # If a statement ends without end of line AND semicolon is on the same line then the statement will be ignored; i.e. > {code}select * from TABLE;{code} will be *not* executed > # If a statement ends without end of line BUT semicolon is on the next line then the statement will be executed, but {color:red};java.lang.NullPointerException{color} will be thrown; i.e. > {code}select * from TABLE > ;{code} will be executed, but print {color:red};java.lang.NullPointerException{color} > # If a statement ends with end of line regardless where semicolon is then the statement will be executed; i.e. > {code}select * from TABLE; > {code} > or > {code}select * from TABLE > ;{code} > will be executed -- This message was sent by Atlassian JIRA (v6.3.4#6332)