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/11/15 02:18:59 UTC

svn commit: r1639824 - /hive/trunk/beeline/src/java/org/apache/hive/beeline/Commands.java

Author: brock
Date: Sat Nov 15 01:18:59 2014
New Revision: 1639824

URL: http://svn.apache.org/r1639824
Log:
HIVE-6683 - Beeline does not accept comments at end of line (Sergio Pena 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=1639824&r1=1639823&r2=1639824&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 Sat Nov 15 01:18:59 2014
@@ -725,7 +725,7 @@ public class Commands {
 
         String extra = beeLine.getConsoleReader().readLine(prompt.toString());
         if (!beeLine.isComment(extra)) {
-          line += " " + extra;
+          line += "\n" + extra;
         }
       }
     } catch (Exception e) {