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

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

                Author: ASF GitHub Bot
            Created on: 23/May/22 07:43
            Start Date: 23/May/22 07:43
    Worklog Time Spent: 10m 
      Work Description: deniskuzZ commented on code in PR #3281:
URL: https://github.com/apache/hive/pull/3281#discussion_r879120122


##########
ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java:
##########
@@ -8223,9 +8286,27 @@ private void handleLineage(LoadTableDesc ltd, Operator 
output)
       Path tlocation = null;
       String tName = Utilities.getDbTableName(tableDesc.getDbTableName())[1];
       try {
+        String suffix = "";
+        if (!tableDesc.isExternal()) {
+          boolean useSuffix = HiveConf.getBoolVar(conf, 
HiveConf.ConfVars.HIVE_ACID_CREATE_TABLE_USE_SUFFIX)

Review Comment:
   you shouldn't be relying on configs here, but the SOFT_DELETE_TABLE prop 
value





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

    Worklog Id:     (was: 773325)
    Time Spent: 3h 10m  (was: 3h)

> Make CTAS use Direct Insert Semantics
> -------------------------------------
>
>                 Key: HIVE-26217
>                 URL: https://issues.apache.org/jira/browse/HIVE-26217
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Sourabh Badhya
>            Assignee: Sourabh Badhya
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 3h 10m
>  Remaining Estimate: 0h
>
> CTAS on transactional tables currently does a copy from staging location to 
> table location. This can be avoided by using Direct Insert semantics. Added 
> support for suffixed table locations as well.



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

Reply via email to