hadoop-hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zs...@apache.org
Subject svn commit: r758139 - in /hadoop/hive/trunk: CHANGES.txt ql/src/test/templates/TestCliDriver.vm serde/src/java/org/apache/hadoop/hive/utils/
Date Wed, 25 Mar 2009 04:24:38 GMT
Author: zshao
Date: Wed Mar 25 04:24:36 2009
New Revision: 758139

URL: http://svn.apache.org/viewvc?rev=758139&view=rev
Log:
HIVE-349. Fix TestCliDriver when there are test cases with no tasks. (Suresh Antony via zshao)

Removed:
    hadoop/hive/trunk/serde/src/java/org/apache/hadoop/hive/utils/
Modified:
    hadoop/hive/trunk/CHANGES.txt
    hadoop/hive/trunk/ql/src/test/templates/TestCliDriver.vm

Modified: hadoop/hive/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hive/trunk/CHANGES.txt?rev=758139&r1=758138&r2=758139&view=diff
==============================================================================
--- hadoop/hive/trunk/CHANGES.txt (original)
+++ hadoop/hive/trunk/CHANGES.txt Wed Mar 25 04:24:36 2009
@@ -22,6 +22,9 @@
 
   BUG FIXES
 
+    HIVE-349. Fix TestCliDriver when there are test cases with no tasks.
+    (Suresh Antony via zshao)
+
     HIVE-339. Fix count distinct in 1 map-reduce job with map side
     aggregation. (Namit Jain via zshao)
 

Modified: hadoop/hive/trunk/ql/src/test/templates/TestCliDriver.vm
URL: http://svn.apache.org/viewvc/hadoop/hive/trunk/ql/src/test/templates/TestCliDriver.vm?rev=758139&r1=758138&r2=758139&view=diff
==============================================================================
--- hadoop/hive/trunk/ql/src/test/templates/TestCliDriver.vm (original)
+++ hadoop/hive/trunk/ql/src/test/templates/TestCliDriver.vm Wed Mar 25 04:24:36 2009
@@ -75,11 +75,13 @@
         Map<String, QueryInfo> jobInfoMap = hv.getJobInfoMap();
         Map<String, TaskInfo> taskInfoMap = hv.getTaskInfoMap();
 
-        String cmd = (String)jobInfoMap.keySet().toArray()[0];
-        QueryInfo ji = jobInfoMap.get(cmd);
-
-        if (!ji.hm.get(Keys.QUERY_RET_CODE.name()).equals("0")) {
-            fail("Wrong return code in hive history");
+        if(jobInfoMap.size() != 0) {
+          String cmd = (String)jobInfoMap.keySet().toArray()[0];
+          QueryInfo ji = jobInfoMap.get(cmd);
+
+          if (!ji.hm.get(Keys.QUERY_RET_CODE.name()).equals("0")) {
+              fail("Wrong return code in hive history");
+          }
         }
       }
 



Mime
View raw message