[ https://issues.apache.org/jira/browse/HIVE-26244?focusedWorklogId=782877&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-782877 ]
ASF GitHub Bot logged work on HIVE-26244: ----------------------------------------- Author: ASF GitHub Bot Created on: 20/Jun/22 08:50 Start Date: 20/Jun/22 08:50 Worklog Time Spent: 10m Work Description: deniskuzZ commented on code in PR #3307: URL: https://github.com/apache/hive/pull/3307#discussion_r901411913 ########## ql/src/java/org/apache/hadoop/hive/ql/io/AcidUtils.java: ########## @@ -3104,6 +3111,11 @@ Seems much cleaner if each stmt is identified as a particular HiveOperation (whi return lockComponents; } + public static boolean isExclusiveCTAS(List<LockComponent> lockComponents, HiveConf conf) { + return lockComponents.stream().anyMatch(lc -> DataOperationType.CTAS == lc.getOperationType() Review Comment: use Set<WriteEntity> outputs.getType ```` isExclusiveCTAS(work.getOutputs()) ```` ########## standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/OperationType.java: ########## @@ -34,7 +34,8 @@ public enum OperationType { INSERT('i', DataOperationType.INSERT), UPDATE('u', DataOperationType.UPDATE), DELETE('d', DataOperationType.DELETE), - COMPACT('c', null); + COMPACT('c', null), + CTAS('t', DataOperationType.CTAS); Review Comment: remove this Issue Time Tracking ------------------- Worklog Id: (was: 782877) Time Spent: 8h 40m (was: 8.5h) > Implementing locking for concurrent ctas > ---------------------------------------- > > Key: HIVE-26244 > URL: https://issues.apache.org/jira/browse/HIVE-26244 > Project: Hive > Issue Type: Improvement > Reporter: Simhadri G > Assignee: Simhadri G > Priority: Major > Labels: pull-request-available > Time Spent: 8h 40m > Remaining Estimate: 0h > -- This message was sent by Atlassian Jira (v8.20.7#820007)