hadoop-hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pras...@apache.org
Subject svn commit: r771405 - in /hadoop/hive/branches/branch-0.3: cli/src/java/org/apache/hadoop/hive/cli/CliDriver.java ql/src/test/results/clientnegative/external1.q.out ql/src/test/results/clientnegative/external2.q.out
Date Mon, 04 May 2009 19:06:46 GMT
Author: prasadc
Date: Mon May  4 19:06:45 2009
New Revision: 771405

URL: http://svn.apache.org/viewvc?rev=771405&view=rev
Log:
HIVE-453 tests

Modified:
    hadoop/hive/branches/branch-0.3/cli/src/java/org/apache/hadoop/hive/cli/CliDriver.java
    hadoop/hive/branches/branch-0.3/ql/src/test/results/clientnegative/external1.q.out
    hadoop/hive/branches/branch-0.3/ql/src/test/results/clientnegative/external2.q.out

Modified: hadoop/hive/branches/branch-0.3/cli/src/java/org/apache/hadoop/hive/cli/CliDriver.java
URL: http://svn.apache.org/viewvc/hadoop/hive/branches/branch-0.3/cli/src/java/org/apache/hadoop/hive/cli/CliDriver.java?rev=771405&r1=771404&r2=771405&view=diff
==============================================================================
--- hadoop/hive/branches/branch-0.3/cli/src/java/org/apache/hadoop/hive/cli/CliDriver.java
(original)
+++ hadoop/hive/branches/branch-0.3/cli/src/java/org/apache/hadoop/hive/cli/CliDriver.java
Mon May  4 19:06:45 2009
@@ -201,18 +201,21 @@
   }
 
   public int processLine(String line) {
-    int ret = 0;
+    int lastRet = 0, ret = 0;
+
     for(String oneCmd: line.split(";")) {
-      if(oneCmd.equals(""))
+
+      if(StringUtils.isBlank(oneCmd))
         continue;
-      
+       
       ret = processCmd(oneCmd);
-      if(ret != 0) {
-        // ignore anything after the first failed command
+      lastRet = ret;
+      boolean ignoreErrors = HiveConf.getBoolVar(conf, HiveConf.ConfVars.CLIIGNOREERRORS);
+      if(ret != 0 && !ignoreErrors) {
         return ret;
       }
     }
-    return 0;
+    return lastRet;
   }
 
   public int processReader(BufferedReader r) throws IOException {

Modified: hadoop/hive/branches/branch-0.3/ql/src/test/results/clientnegative/external1.q.out
URL: http://svn.apache.org/viewvc/hadoop/hive/branches/branch-0.3/ql/src/test/results/clientnegative/external1.q.out?rev=771405&r1=771404&r2=771405&view=diff
==============================================================================
--- hadoop/hive/branches/branch-0.3/ql/src/test/results/clientnegative/external1.q.out (original)
+++ hadoop/hive/branches/branch-0.3/ql/src/test/results/clientnegative/external1.q.out Mon
May  4 19:06:45 2009
@@ -1,2 +1,3 @@
 FAILED: Error in metadata: MetaException(message:Got exception: java.io.IOException No FileSystem
for scheme: invalidscheme)
 FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
+FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask

Modified: hadoop/hive/branches/branch-0.3/ql/src/test/results/clientnegative/external2.q.out
URL: http://svn.apache.org/viewvc/hadoop/hive/branches/branch-0.3/ql/src/test/results/clientnegative/external2.q.out?rev=771405&r1=771404&r2=771405&view=diff
==============================================================================
--- hadoop/hive/branches/branch-0.3/ql/src/test/results/clientnegative/external2.q.out (original)
+++ hadoop/hive/branches/branch-0.3/ql/src/test/results/clientnegative/external2.q.out Mon
May  4 19:06:45 2009
@@ -1,2 +1,3 @@
 FAILED: Error in metadata: MetaException(message:Got exception: java.io.IOException No FileSystem
for scheme: invalidscheme)
 FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
+FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask



Mime
View raw message