You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by om...@apache.org on 2013/05/30 17:13:28 UTC

svn commit: r1487889 - /hive/branches/vectorization/ql/src/test/org/apache/hadoop/hive/ql/QTestUtil.java

Author: omalley
Date: Thu May 30 15:13:28 2013
New Revision: 1487889

URL: http://svn.apache.org/r1487889
Log:
HIVE-4602 Enable running all hive e2e tests under vectorization. (Tony Murphy
via omalley)

Modified:
    hive/branches/vectorization/ql/src/test/org/apache/hadoop/hive/ql/QTestUtil.java

Modified: hive/branches/vectorization/ql/src/test/org/apache/hadoop/hive/ql/QTestUtil.java
URL: http://svn.apache.org/viewvc/hive/branches/vectorization/ql/src/test/org/apache/hadoop/hive/ql/QTestUtil.java?rev=1487889&r1=1487888&r2=1487889&view=diff
==============================================================================
--- hive/branches/vectorization/ql/src/test/org/apache/hadoop/hive/ql/QTestUtil.java (original)
+++ hive/branches/vectorization/ql/src/test/org/apache/hadoop/hive/ql/QTestUtil.java Thu May 30 15:13:28 2013
@@ -56,6 +56,7 @@ import org.apache.hadoop.hive.cli.CliDri
 import org.apache.hadoop.hive.cli.CliSessionState;
 import org.apache.hadoop.hive.common.io.CachingPrintStream;
 import org.apache.hadoop.hive.conf.HiveConf;
+import org.apache.hadoop.hive.conf.HiveConf.ConfVars;
 import org.apache.hadoop.hive.metastore.MetaStoreUtils;
 import org.apache.hadoop.hive.metastore.api.Index;
 import org.apache.hadoop.hive.ql.exec.FunctionRegistry;
@@ -198,7 +199,7 @@ public class QTestUtil {
   public String getLogDirectory() {
     return logDir;
   }
-  
+
   private String getHadoopMainVersion(String input) {
     if (input == null) {
       return null;
@@ -217,6 +218,11 @@ public class QTestUtil {
       convertPathsFromWindowsToHdfs();
     }
 
+    String vectorizationEnabled = System.getProperty("test.vectorization.enabled");
+    if(vectorizationEnabled != null && vectorizationEnabled.equalsIgnoreCase("true")) {
+      conf.setBoolVar(ConfVars.HIVE_VECTORIZATION_ENABLED, true);
+    }
+
     if (miniMr) {
       assert dfs != null;
       assert mr != null;