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

pvary 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 cf06939  HIVE-26016: Remove duplicate table exists check in 
create_table_core api of HMSHandler (Wechar Yu, reviewed by Rajesh Balamohan 
and Peter Vary) (#3085)
cf06939 is described below

commit cf06939bc0b79d1f04f777f80de1f729d45456f0
Author: Wechar Yu <[email protected]>
AuthorDate: Mon Mar 21 18:18:48 2022 +0800

    HIVE-26016: Remove duplicate table exists check in create_table_core api of 
HMSHandler (Wechar Yu, reviewed by Rajesh Balamohan and Peter Vary) (#3085)
---
 .../src/main/java/org/apache/hadoop/hive/metastore/HMSHandler.java   | 5 -----
 1 file changed, 5 deletions(-)

diff --git 
a/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HMSHandler.java
 
b/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HMSHandler.java
index 6e8b85d..e458ae2 100644
--- 
a/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HMSHandler.java
+++ 
b/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HMSHandler.java
@@ -2335,11 +2335,6 @@ public class HMSHandler extends FacebookBase implements 
IHMSHandler {
       isReplicated = isDbReplicationTarget(db);
 
       firePreEvent(new PreCreateTableEvent(tbl, db, this));
-      // get_table checks whether database exists, it should be moved here
-      if (is_table_exists(ms, tbl.getCatName(), tbl.getDbName(), 
tbl.getTableName())) {
-        throw new AlreadyExistsException("Table " + 
getCatalogQualifiedTableName(tbl)
-            + " already exists");
-      }
 
       if (!TableType.VIRTUAL_VIEW.toString().equals(tbl.getTableType())) {
         if (tbl.getSd().getLocation() == null

Reply via email to