deniskuzZ commented on code in PR #4616:
URL: https://github.com/apache/hive/pull/4616#discussion_r1395495708
##########
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java:
##########
@@ -2312,14 +2314,19 @@ private Table convertToTable(MTable mtbl) throws
MetaException {
} else {
tableType = TableType.MANAGED_TABLE.toString();
}
+ } else {
+ if (!tableType.equals(TableType.MANAGED_TABLE.toString()) &&
!tableType.equals(TableType.EXTERNAL_TABLE.toString())) {
Review Comment:
TableType is an enum that defines list of allowed values. Optimization that
you've added is only relevant to the views. There could be some issue with test
and we should fix it.
--
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]