Skip to content

Commit

Permalink
HIVE-25355 : Exclude EXPLAIN from Read Txns. Need to be reverted once…
Browse files Browse the repository at this point in the history
… HIVE-25011 i… (apache#2694)(Aasha Medhi, reviewed by Pravin Kumar Sinha)

* Exclude EXPLAIN from Read Txns. Need to be reverted once HIVE-25011 is committed

* Fix tests
  • Loading branch information
aasha committed Oct 4, 2021
1 parent 11ee73c commit 4949f23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -976,10 +976,7 @@ public void testReadOperationsNotCapturedInNotificationLog() throws Throwable {
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 {
Expand Down Expand Up @@ -1659,7 +1656,7 @@ public void testOpenTxnEvent() throws Throwable {
primary.dump(primaryDbName);

long lastReplId = Long.parseLong(bootStrapDump.lastReplicationId);
primary.testEventCounts(primaryDbName, lastReplId, null, null, 12);
primary.testEventCounts(primaryDbName, lastReplId, null, null, 14);

// Test load
replica.load(replicatedDbName, primaryDbName)
Expand Down
3 changes: 1 addition & 2 deletions ql/src/java/org/apache/hadoop/hive/ql/io/AcidUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,7 @@ public boolean accept(Path path) {
HiveParser.TOK_DESCTABLE,
HiveParser.TOK_SHOWTABLES,
HiveParser.TOK_SHOW_TABLESTATUS,
HiveParser.TOK_SHOW_TBLPROPERTIES,
HiveParser.TOK_EXPLAIN
HiveParser.TOK_SHOW_TBLPROPERTIES
));
}

Expand Down

0 comments on commit 4949f23

Please sign in to comment.