deniskuzZ commented on PR #5691:
URL: https://github.com/apache/hive/pull/5691#issuecomment-2748024874

   I think we should revert this change entirely and do below instead
   ````
   private static boolean isLockableTable(Table t, boolean isExternalEnabled, 
boolean isLocklessReads) {
       if (t.isTemporary()) {
         return false;
       }
       switch (t.getTableType()) {
         case MANAGED_TABLE:
         case MATERIALIZED_VIEW:
           return !(isLocklessReads && isTransactionalTable(t)) || 
t.isNonNative() && isExternalEnabled;
         case EXTERNAL_TABLE:
           return isExternalEnabled;
         default:
           return false;
       }
     }
   ````


-- 
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: gitbox-unsubscr...@hive.apache.org

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