hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xu...@apache.org
Subject [51/84] [abbrv] hive git commit: HIVE-10277: Unable to process Comment line '--' in HIVE-1.1.0 (Chinna via Xuefu)
Date Fri, 29 May 2015 04:47:30 GMT
HIVE-10277: Unable to process Comment line '--' in HIVE-1.1.0 (Chinna via Xuefu)


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

Branch: refs/heads/spark
Commit: d66a7347ab97983cc5b9fca6bdabebc81e5a77e5
Parents: d75a541
Author: Xuefu Zhang <xzhang@Cloudera.com>
Authored: Mon May 25 14:14:29 2015 -0700
Committer: Xuefu Zhang <xzhang@Cloudera.com>
Committed: Mon May 25 14:14:29 2015 -0700

----------------------------------------------------------------------
 cli/src/java/org/apache/hadoop/hive/cli/CliDriver.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/d66a7347/cli/src/java/org/apache/hadoop/hive/cli/CliDriver.java
----------------------------------------------------------------------
diff --git a/cli/src/java/org/apache/hadoop/hive/cli/CliDriver.java b/cli/src/java/org/apache/hadoop/hive/cli/CliDriver.java
index d62fd5c..3f2d8da 100644
--- a/cli/src/java/org/apache/hadoop/hive/cli/CliDriver.java
+++ b/cli/src/java/org/apache/hadoop/hive/cli/CliDriver.java
@@ -369,7 +369,7 @@ public class CliDriver {
         } else {
           command += oneCmd;
         }
-        if (StringUtils.isBlank(command)) {
+	if (StringUtils.isBlank(command) || command.startsWith("--")) {
           continue;
         }
 


Mime
View raw message