hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From na...@apache.org
Subject svn commit: r758438 - in /hadoop/hive/trunk: CHANGES.txt ql/src/test/org/apache/hadoop/hive/ql/QTestUtil.java
Date Wed, 25 Mar 2009 21:12:09 GMT
Author: namit
Date: Wed Mar 25 21:12:03 2009
New Revision: 758438

URL: http://svn.apache.org/viewvc?rev=758438&view=rev
Log:
HIVE-342. Fix TestMTQueries
(Prasad Chakka via namit)


Modified:
    hadoop/hive/trunk/CHANGES.txt
    hadoop/hive/trunk/ql/src/test/org/apache/hadoop/hive/ql/QTestUtil.java

Modified: hadoop/hive/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hive/trunk/CHANGES.txt?rev=758438&r1=758437&r2=758438&view=diff
==============================================================================
--- hadoop/hive/trunk/CHANGES.txt (original)
+++ hadoop/hive/trunk/CHANGES.txt Wed Mar 25 21:12:03 2009
@@ -76,6 +76,9 @@
     HIVE-366. Make id a non-bean attribute so that TestParse does not depend on that.
     (namit)
 
+    HIVE-342. Fix TestMTQueries
+    (Prasad Chakka via namit)
+
 Release 0.2.0 - Unreleased
 
   INCOMPATIBLE CHANGES

Modified: hadoop/hive/trunk/ql/src/test/org/apache/hadoop/hive/ql/QTestUtil.java
URL: http://svn.apache.org/viewvc/hadoop/hive/trunk/ql/src/test/org/apache/hadoop/hive/ql/QTestUtil.java?rev=758438&r1=758437&r2=758438&view=diff
==============================================================================
--- hadoop/hive/trunk/ql/src/test/org/apache/hadoop/hive/ql/QTestUtil.java (original)
+++ hadoop/hive/trunk/ql/src/test/org/apache/hadoop/hive/ql/QTestUtil.java Wed Mar 25 21:12:03
2009
@@ -159,8 +159,6 @@
     this.logDir = logDir;
     conf = new HiveConf(Driver.class);
 
-    CliSessionState ss = new CliSessionState(conf);
-    SessionState.start(ss);
     // System.out.println(conf.toString());
     testFiles = conf.get("test.data.files").replace('\\', '/').replace("c:", "");
 
@@ -373,8 +371,9 @@
       createSources();
     }
 
-    //CliSessionState ss = new CliSessionState(conf);
-    SessionState ss = SessionState.get();
+    CliSessionState ss = new CliSessionState(conf);
+    SessionState.start(ss);
+    assert ss!= null;
     ss.in = System.in;
 
     File qf = new File(outDir, tname);



Mime
View raw message