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

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

                Author: ASF GitHub Bot
            Created on: 19/Aug/22 07:59
            Start Date: 19/Aug/22 07:59
    Worklog Time Spent: 10m 
      Work Description: lcspinter commented on code in PR #3533:
URL: https://github.com/apache/hive/pull/3533#discussion_r949911366


##########
ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java:
##########
@@ -14046,7 +14046,8 @@ private void addDbAndTabToOutputs(String[] 
qualifiedTabName, TableType type,
       t.setSerdeParam(serdeMap.getKey(), serdeMap.getValue());
     }
     WriteType lockType = tblProps != null && 
Boolean.parseBoolean(tblProps.get(TABLE_IS_CTAS))
-        && AcidUtils.isExclusiveCTASEnabled(conf) ?
+        && AcidUtils.isExclusiveCTASEnabled(conf)
+        && (t.getStorageHandler() == null || 
!t.getStorageHandler().directInsertCTAS()) ?

Review Comment:
   done





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

    Worklog Id:     (was: 801892)
    Time Spent: 40m  (was: 0.5h)

> Use DDL_NO_LOCK when running iceberg CTAS query
> -----------------------------------------------
>
>                 Key: HIVE-26483
>                 URL: https://issues.apache.org/jira/browse/HIVE-26483
>             Project: Hive
>          Issue Type: Bug
>            Reporter: László Pintér
>            Assignee: László Pintér
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> HIVE-26244 introduced locking when running CTAS queries. Iceberg already had 
> an explicit locking implemented for CTAS queries and after HIVE-26244 the two 
> locking mechanisms started colliding resulting in a deadlock.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to