pvary commented on a change in pull request #1217:
URL: https://github.com/apache/hive/pull/1217#discussion_r450752554



##########
File path: 
ql/src/java/org/apache/hadoop/hive/ql/ddl/table/create/CreateTableOperation.java
##########
@@ -62,7 +62,8 @@ public int execute() throws HiveException {
     if (desc.getReplicationSpec().isInReplicationScope()) {
       // If in replication scope, we should check if the object we're looking 
at exists, and if so,
       // trigger replace-mode semantics.
-      Table existingTable = context.getDb().getTable(tbl.getDbName(), 
tbl.getTableName(), false);
+      Table existingTable = context.getDb().getTable(tbl.getDbName(),
+      tbl.getTableName(), false, true);

Review comment:
       nit: Formatting - I think it is below 120, so we can put it into a 
single line. If not, then we should indent the second line with 4 space




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org
For additional commands, e-mail: gitbox-h...@hive.apache.org

Reply via email to