[ 
https://issues.apache.org/jira/browse/HIVE-26244?focusedWorklogId=782879&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-782879
 ]

ASF GitHub Bot logged work on HIVE-26244:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 20/Jun/22 08:51
            Start Date: 20/Jun/22 08:51
    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())
   ````





Issue Time Tracking
-------------------

    Worklog Id:     (was: 782879)
    Time Spent: 8h 50m  (was: 8h 40m)

> 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 50m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to