[jira] [Commented] (HIVE-10784) Beeline requires new line (EOL) at the end of an Hive SQL script (NullPointerException)

2015-05-22 Thread Chinna Rao Lalam (JIRA)

[ 
https://issues.apache.org/jira/browse/HIVE-10784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14555862#comment-14555862
 ] 

Chinna Rao Lalam commented on HIVE-10784:
-

Hi [~biosetup],

I have tested mistakenly with 1.2.0.. It is working in 1.3.0 version.. Thanks 
[~ctang.ma]

 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
Assignee: Chinna Rao Lalam
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;EOF{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
 ;EOF{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;
 EOLEOF{code}
 or
 {code}select * from TABLE
 ;EOLEOF{code}
 will be executed



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (HIVE-10784) Beeline requires new line (EOL) at the end of an Hive SQL script (NullPointerException)

2015-05-21 Thread Chaoyu Tang (JIRA)

[ 
https://issues.apache.org/jira/browse/HIVE-10784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14554596#comment-14554596
 ] 

Chaoyu Tang commented on HIVE-10784:


I wonder the code changes both from HIVE-9877 and HIVE-10541 might have already 
addressed your observed issue.

 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
Assignee: Chinna Rao Lalam
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;EOF{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
 ;EOF{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;
 EOLEOF{code}
 or
 {code}select * from TABLE
 ;EOLEOF{code}
 will be executed



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)