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

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

                Author: ASF GitHub Bot
            Created on: 08/Dec/20 14:49
            Start Date: 08/Dec/20 14:49
    Worklog Time Spent: 10m 
      Work Description: kuczoram commented on a change in pull request #1660:
URL: https://github.com/apache/hive/pull/1660#discussion_r538455465



##########
File path: ql/src/java/org/apache/hadoop/hive/ql/QueryPlan.java
##########
@@ -189,6 +191,49 @@ public WriteEntity getAcidAnalyzeTable() {
     return acidSinks;
   }
 
+  public Integer getStatementIdForAcidWriteType(long writeId, String 
moveTaskId, AcidUtils.Operation acidOperation, Path path) {
+    FileSinkDesc result = null;
+    for (FileSinkDesc acidSink : acidSinks) {
+      if (acidOperation.equals(acidSink.getAcidOperation()) && 
path.equals(acidSink.getDestPath())
+          && acidSink.getTableWriteId() == writeId
+          && (moveTaskId == null || acidSink.getMoveTaskId() == null || 
moveTaskId.equals(acidSink.getMoveTaskId()))) {
+        // There is a problem with the union all optimisation. In this case, 
there will be multiple FileSinkOperators

Review comment:
       Actually this comment is to explain why the following check was needed, 
but the Java doc for the whole method is a good idea. I added it.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

    Worklog Id:     (was: 521716)
    Time Spent: 1h 40m  (was: 1.5h)

> ACID: Improve the delete and update operations to avoid the move step
> ---------------------------------------------------------------------
>
>                 Key: HIVE-23410
>                 URL: https://issues.apache.org/jira/browse/HIVE-23410
>             Project: Hive
>          Issue Type: Improvement
>    Affects Versions: 4.0.0
>            Reporter: Marta Kuczora
>            Assignee: Marta Kuczora
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: HIVE-23410.1.patch
>
>          Time Spent: 1h 40m
>  Remaining Estimate: 0h
>
> This is a follow-up task for 
> [HIVE-21164|https://issues.apache.org/jira/browse/HIVE-21164], where the 
> insert operation has been modified to write directly to the table locations 
> instead of the staging directory. The same improvement should be done for the 
> ACID update and delete operations as well.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to