sankarh commented on a change in pull request #591: HIVE-21500: Disable 
conversion of managed table to external and vice versa at source.
URL: https://github.com/apache/hive/pull/591#discussion_r275722766
 
 

 ##########
 File path: 
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HiveAlterHandler.java
 ##########
 @@ -803,6 +805,24 @@ public Partition alterPartition(RawStore msdb, Warehouse 
wh, String catName, Str
     return oldParts;
   }
 
+  private void checkTableTypeConversion(Database db, Table oldTbl, Table 
newTbl)
+          throws InvalidOperationException {
+    // If the given DB is enabled for replication and strict managed is false, 
then table type cannot be changed.
 
 Review comment:
   This is not in the scope of this patch. As discussed with @thejasmn today, 
we cannot disable this add partition as it is normal use case for many 
customers. Also, he recommended not to honour the migration rule of "convert to 
external if location owner is not hive". Anyways, we cannot guarantee this in 
some of the corner cases such as "user manually change location permission 
etc". So, let's make user to reboot strap such tables after upgrade.
   Will send out a mail and shall discuss more on this.

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


With regards,
Apache Git Services

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

Reply via email to