You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by vg...@apache.org on 2018/05/15 22:40:36 UTC

[16/50] [abbrv] hive git commit: HIVE-19178: TestMiniTezCliDriver.testCliDriver[explainanalyze_5] failure (Jesus Camacho Rodriguez, reviewed by Vineet Garg)

HIVE-19178: TestMiniTezCliDriver.testCliDriver[explainanalyze_5] failure (Jesus Camacho Rodriguez, reviewed by Vineet Garg)


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/d2c97002
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/d2c97002
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/d2c97002

Branch: refs/heads/branch-3.0.0
Commit: d2c970022da1fe23c6e631979a6e1d5e17229e3f
Parents: 3c3880c
Author: Jesus Camacho Rodriguez <jc...@apache.org>
Authored: Tue May 8 16:53:55 2018 -0700
Committer: Jesus Camacho Rodriguez <jc...@apache.org>
Committed: Thu May 10 11:57:39 2018 -0700

----------------------------------------------------------------------
 .../hadoop/hive/ql/parse/ExplainSemanticAnalyzer.java     |  4 ++++
 .../results/clientpositive/tez/explainanalyze_5.q.out     | 10 +++++-----
 2 files changed, 9 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/d2c97002/ql/src/java/org/apache/hadoop/hive/ql/parse/ExplainSemanticAnalyzer.java
----------------------------------------------------------------------
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/ExplainSemanticAnalyzer.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/ExplainSemanticAnalyzer.java
index 918cc5a..3a7d99d 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/parse/ExplainSemanticAnalyzer.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/ExplainSemanticAnalyzer.java
@@ -31,6 +31,8 @@ import org.apache.hadoop.fs.FileSystem;
 import org.apache.hadoop.fs.Path;
 import org.apache.hadoop.hive.common.FileUtils;
 import org.apache.hadoop.hive.common.StatsSetupConst;
+import org.apache.hadoop.hive.common.ValidTxnList;
+import org.apache.hadoop.hive.common.ValidTxnWriteIdList;
 import org.apache.hadoop.hive.conf.HiveConf;
 import org.apache.hadoop.hive.metastore.api.FieldSchema;
 import org.apache.hadoop.hive.ql.Context;
@@ -128,6 +130,8 @@ public class ExplainSemanticAnalyzer extends BaseSemanticAnalyzer {
       String query = ctx.getTokenRewriteStream().toString(input.getTokenStartIndex(),
           input.getTokenStopIndex());
       LOG.info("Explain analyze (running phase) for query " + query);
+      conf.unset(ValidTxnList.VALID_TXNS_KEY);
+      conf.unset(ValidTxnWriteIdList.VALID_TABLES_WRITEIDS_KEY);
       Context runCtx = null;
       try {
         runCtx = new Context(conf);

http://git-wip-us.apache.org/repos/asf/hive/blob/d2c97002/ql/src/test/results/clientpositive/tez/explainanalyze_5.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/tez/explainanalyze_5.q.out b/ql/src/test/results/clientpositive/tez/explainanalyze_5.q.out
index e493211..8add8c0 100644
--- a/ql/src/test/results/clientpositive/tez/explainanalyze_5.q.out
+++ b/ql/src/test/results/clientpositive/tez/explainanalyze_5.q.out
@@ -34,19 +34,19 @@ Stage-2
         default@src_stats,src_stats,Tbl:COMPLETE,Col:COMPLETE
 
 PREHOOK: query: analyze table src_stats compute statistics for columns
-PREHOOK: type: QUERY
+PREHOOK: type: ANALYZE_TABLE
 PREHOOK: Input: default@src_stats
 PREHOOK: Output: default@src_stats
 PREHOOK: Output: hdfs://### HDFS PATH ###
 POSTHOOK: query: analyze table src_stats compute statistics for columns
-POSTHOOK: type: QUERY
+POSTHOOK: type: ANALYZE_TABLE
 POSTHOOK: Input: default@src_stats
 POSTHOOK: Output: default@src_stats
 POSTHOOK: Output: hdfs://### HDFS PATH ###
 PREHOOK: query: explain analyze analyze table src_stats compute statistics for columns
-PREHOOK: type: QUERY
+PREHOOK: type: ANALYZE_TABLE
 POSTHOOK: query: explain analyze analyze table src_stats compute statistics for columns
-POSTHOOK: type: QUERY
+POSTHOOK: type: ANALYZE_TABLE
 Vertex dependency in root stage
 Reducer 2 <- Map 1 (CUSTOM_SIMPLE_EDGE)
 
@@ -417,7 +417,7 @@ Stage-3
                       Output:["_col0"]
                       Filter Operator [FIL_8] (rows=1/8 width=3)
                         predicate:(cint < -1070551679)
-                        TableScan [TS_0] (rows=7484/12288 width=3)
+                        TableScan [TS_0] (rows=5865/12288 width=3)
                           default@acid_dot,acid_dot, ACID table,Tbl:COMPLETE,Col:NONE,Output:["cint"]
 
 PREHOOK: query: select count(*) from acid_dot