You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by xu...@apache.org on 2015/11/12 04:59:56 UTC

[32/55] [abbrv] hive git commit: HIVE-12263 : Hive SchemaTool does not tolerate leading spaces in JDBC url (Chen Xin Yu via Ashutosh Chauhan)

HIVE-12263 : Hive SchemaTool does not tolerate leading spaces in JDBC url (Chen Xin Yu via Ashutosh Chauhan)

Signed-off-by: Ashutosh Chauhan <ha...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/ab7794c0
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/ab7794c0
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/ab7794c0

Branch: refs/heads/spark
Commit: ab7794c0255cb2803eac7d9b92fb60567d7ac867
Parents: 97735ec
Author: Chen Xin Yu <qi...@126.com>
Authored: Sun Oct 25 20:19:00 2015 -0800
Committer: Ashutosh Chauhan <ha...@apache.org>
Committed: Sat Nov 7 11:17:18 2015 -0800

----------------------------------------------------------------------
 beeline/src/java/org/apache/hive/beeline/HiveSchemaHelper.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/ab7794c0/beeline/src/java/org/apache/hive/beeline/HiveSchemaHelper.java
----------------------------------------------------------------------
diff --git a/beeline/src/java/org/apache/hive/beeline/HiveSchemaHelper.java b/beeline/src/java/org/apache/hive/beeline/HiveSchemaHelper.java
index 7e8cc67..181f0d2 100644
--- a/beeline/src/java/org/apache/hive/beeline/HiveSchemaHelper.java
+++ b/beeline/src/java/org/apache/hive/beeline/HiveSchemaHelper.java
@@ -86,7 +86,7 @@ public class HiveSchemaHelper {
     if (confVarStr == null || confVarStr.isEmpty()) {
       throw new IOException("Empty " + confVar.varname);
     }
-    return confVarStr;
+    return confVarStr.trim();
   }
 
   public interface NestedScriptParser {