You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by aa...@apache.org on 2021/10/06 04:13:12 UTC

[hive] branch master updated: Revert "HIVE-25355 : Exclude EXPLAIN from Read Txns. Need to be reverted once HIVE-25011 i… (#2694)(Aasha Medhi, reviewed by Pravin Kumar Sinha)" (#2698)

This is an automated email from the ASF dual-hosted git repository.

aasha pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git


The following commit(s) were added to refs/heads/master by this push:
     new cf0555f  Revert "HIVE-25355 : Exclude EXPLAIN from Read Txns. Need to be reverted once HIVE-25011 i… (#2694)(Aasha Medhi, reviewed by Pravin Kumar Sinha)" (#2698)
cf0555f is described below

commit cf0555fadf7e101940646434d730843c806d9427
Author: aasha <aa...@gmail.com>
AuthorDate: Wed Oct 6 09:43:01 2021 +0530

    Revert "HIVE-25355 : Exclude EXPLAIN from Read Txns. Need to be reverted once HIVE-25011 i… (#2694)(Aasha Medhi, reviewed by Pravin Kumar Sinha)" (#2698)
    
    This reverts commit 4949f23b7e616bf933e3f35069ef79b7d8ad750f.
---
 .../hadoop/hive/ql/parse/TestReplicationScenariosAcidTables.java     | 5 ++++-
 ql/src/java/org/apache/hadoop/hive/ql/io/AcidUtils.java              | 3 ++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/TestReplicationScenariosAcidTables.java b/itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/TestReplicationScenariosAcidTables.java
index dea7460..ed7a4f9 100644
--- a/itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/TestReplicationScenariosAcidTables.java
+++ b/itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/TestReplicationScenariosAcidTables.java
@@ -976,7 +976,10 @@ public class TestReplicationScenariosAcidTables extends BaseReplicationScenarios
       primary.run("SHOW TABLES " + dbName);
       primary.run("SHOW TABLE EXTENDED LIKE 't1'");
       primary.run("SHOW TBLPROPERTIES t1");
+      primary.run("EXPLAIN SELECT * from " + dbName + ".t1");
       primary.run("SHOW LOCKS");
+      primary.run("EXPLAIN SHOW LOCKS");
+      primary.run("EXPLAIN LOCKS UPDATE target SET b = 1 WHERE p IN (SELECT t.q1 FROM source t WHERE t.a1=5)");
       long currentEventId = primary.getCurrentNotificationEventId().getEventId();
       Assert.assertEquals(lastEventId, currentEventId);
     } finally {
@@ -1656,7 +1659,7 @@ public class TestReplicationScenariosAcidTables extends BaseReplicationScenarios
             primary.dump(primaryDbName);
 
     long lastReplId = Long.parseLong(bootStrapDump.lastReplicationId);
-    primary.testEventCounts(primaryDbName, lastReplId, null, null, 14);
+    primary.testEventCounts(primaryDbName, lastReplId, null, null, 12);
 
     // Test load
     replica.load(replicatedDbName, primaryDbName)
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/io/AcidUtils.java b/ql/src/java/org/apache/hadoop/hive/ql/io/AcidUtils.java
index ec2058a..6034d78 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/io/AcidUtils.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/io/AcidUtils.java
@@ -195,7 +195,8 @@ public class AcidUtils {
             HiveParser.TOK_DESCTABLE,
             HiveParser.TOK_SHOWTABLES,
             HiveParser.TOK_SHOW_TABLESTATUS,
-            HiveParser.TOK_SHOW_TBLPROPERTIES
+            HiveParser.TOK_SHOW_TBLPROPERTIES,
+            HiveParser.TOK_EXPLAIN
     ));
   }