saihemanth-cloudera commented on a change in pull request #2924:
URL: https://github.com/apache/hive/pull/2924#discussion_r791068198



##########
File path: ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java
##########
@@ -13600,7 +13616,12 @@ ASTNode analyzeCreateTable(
 
     // Handle different types of CREATE TABLE command
     // Note: each branch must call addDbAndTabToOutputs after finalizing table 
properties.
-
+    Database database  = getDatabase(qualifiedTabName.getDb());
+    boolean isDefaultTableTypeChanged = false;
+    if(database.getParameters() != null && 
database.getParameters().containsKey(DEFAULT_TABLE_TYPE) && 
database.getParameters().get(DEFAULT_TABLE_TYPE).equalsIgnoreCase("external")) {
+      isExt = true;
+      isDefaultTableTypeChanged = true;

Review comment:
       Ack. Addressed the comment in next commit




-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to