You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by br...@apache.org on 2014/09/30 19:57:05 UTC
svn commit: r1628501 -
/hive/trunk/beeline/src/java/org/apache/hive/beeline/Commands.java
Author: brock
Date: Tue Sep 30 17:57:04 2014
New Revision: 1628501
URL: http://svn.apache.org/r1628501
Log:
HIVE-8182 - beeline fails when executing multiple-line queries with trailing spaces (Sergio Peña via Brock)
Modified:
hive/trunk/beeline/src/java/org/apache/hive/beeline/Commands.java
Modified: hive/trunk/beeline/src/java/org/apache/hive/beeline/Commands.java
URL: http://svn.apache.org/viewvc/hive/trunk/beeline/src/java/org/apache/hive/beeline/Commands.java?rev=1628501&r1=1628500&r2=1628501&view=diff
==============================================================================
--- hive/trunk/beeline/src/java/org/apache/hive/beeline/Commands.java (original)
+++ hive/trunk/beeline/src/java/org/apache/hive/beeline/Commands.java Tue Sep 30 17:57:04 2014
@@ -732,7 +732,7 @@ public class Commands {
beeLine.handleException(e);
}
-
+ line = line.trim();
if (line.endsWith(";")) {
line = line.substring(0, line.length() - 1);
}