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

svn commit: r1538503 - in /hive/branches/tez/ql/src/java/org/apache/hadoop/hive/ql/parse: SemanticAnalyzer.java TaskCompilerFactory.java

Author: gunther
Date: Mon Nov  4 04:13:31 2013
New Revision: 1538503

URL: http://svn.apache.org/r1538503
Log:
HIVE-5735: Enable noscan/partialscan on Tez (Gunther Hagleitner)

Modified:
    hive/branches/tez/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java
    hive/branches/tez/ql/src/java/org/apache/hadoop/hive/ql/parse/TaskCompilerFactory.java

Modified: hive/branches/tez/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java
URL: http://svn.apache.org/viewvc/hive/branches/tez/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java?rev=1538503&r1=1538502&r2=1538503&view=diff
==============================================================================
--- hive/branches/tez/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java (original)
+++ hive/branches/tez/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java Mon Nov  4 04:13:31 2013
@@ -8670,7 +8670,7 @@ public class SemanticAnalyzer extends Ba
     if (!ctx.getExplainLogical()) {
       // At this point we have the complete operator tree
       // from which we want to create the map-reduce plan
-      TaskCompiler compiler = TaskCompilerFactory.getCompiler(conf);
+      TaskCompiler compiler = TaskCompilerFactory.getCompiler(conf, pCtx);
       compiler.init(conf, console, db);
       compiler.compile(pCtx, rootTasks, inputs, outputs);
       fetchTask = pCtx.getFetchTask();

Modified: hive/branches/tez/ql/src/java/org/apache/hadoop/hive/ql/parse/TaskCompilerFactory.java
URL: http://svn.apache.org/viewvc/hive/branches/tez/ql/src/java/org/apache/hadoop/hive/ql/parse/TaskCompilerFactory.java?rev=1538503&r1=1538502&r2=1538503&view=diff
==============================================================================
--- hive/branches/tez/ql/src/java/org/apache/hadoop/hive/ql/parse/TaskCompilerFactory.java (original)
+++ hive/branches/tez/ql/src/java/org/apache/hadoop/hive/ql/parse/TaskCompilerFactory.java Mon Nov  4 04:13:31 2013
@@ -34,8 +34,9 @@ public class TaskCompilerFactory {
    * Returns the appropriate compiler to translate the operator tree
    * into executable units.
    */
-  public static TaskCompiler getCompiler(HiveConf conf) {
-    if (HiveConf.getBoolVar(conf, HiveConf.ConfVars.HIVE_OPTIMIZE_TEZ)) {
+  public static TaskCompiler getCompiler(HiveConf conf, ParseContext parseContext) {
+    if (HiveConf.getBoolVar(conf, HiveConf.ConfVars.HIVE_OPTIMIZE_TEZ)
+        && !parseContext.getQB().getParseInfo().isAnalyzeCommand()) {
       return new TezCompiler();
     } else {
       return new MapReduceCompiler();