You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by th...@apache.org on 2014/03/10 15:33:02 UTC

svn commit: r1575952 - /hive/trunk/beeline/src/java/org/apache/hive/beeline/BeeLine.java

Author: thejas
Date: Mon Mar 10 14:33:02 2014
New Revision: 1575952

URL: http://svn.apache.org/r1575952
Log:
HIVE-6359 : beeline -f fails on scripts with tabs in them. (Navis, reviewed by Xuefu Zhang, Thejas Nair)

Modified:
    hive/trunk/beeline/src/java/org/apache/hive/beeline/BeeLine.java

Modified: hive/trunk/beeline/src/java/org/apache/hive/beeline/BeeLine.java
URL: http://svn.apache.org/viewvc/hive/trunk/beeline/src/java/org/apache/hive/beeline/BeeLine.java?rev=1575952&r1=1575951&r2=1575952&view=diff
==============================================================================
--- hive/trunk/beeline/src/java/org/apache/hive/beeline/BeeLine.java (original)
+++ hive/trunk/beeline/src/java/org/apache/hive/beeline/BeeLine.java Mon Mar 10 14:33:02 2014
@@ -714,6 +714,10 @@ public class BeeLine {
       handleException(e);
     }
 
+    if (inputStream instanceof FileInputStream) {
+      // from script.. no need to load history and no need of completor, either
+      return consoleReader;
+    }
     try {
       // now load in the previous history
       if (historyBuffer != null) {