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

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

                Author: ASF GitHub Bot
            Created on: 15/Jul/20 16:04
            Start Date: 15/Jul/20 16:04
    Worklog Time Spent: 10m 
      Work Description: klcopp commented on a change in pull request #1256:
URL: https://github.com/apache/hive/pull/1256#discussion_r455104994



##########
File path: ql/src/java/org/apache/hadoop/hive/ql/io/orc/OrcFile.java
##########
@@ -161,6 +163,7 @@ private static synchronized MemoryManager 
getThreadLocalOrcLlapMemoryManager(fin
         LlapProxy.isDaemon()) {
         memory(getThreadLocalOrcLlapMemoryManager(conf));
       }
+      isCompaction = tableProperties != null && 
"true".equals(tableProperties.getProperty(AcidUtils.COMPACTOR_TABLE_PROPERTY));

Review comment:
       can use AcidUtils#isCompactionTable here

##########
File path: ql/src/test/org/apache/hadoop/hive/ql/TestTxnCommands.java
##########
@@ -25,9 +25,11 @@
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.Collections;
+import java.util.HashSet;

Review comment:
       unused import

##########
File path: ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java
##########
@@ -4206,6 +4206,10 @@ private static void copyFiles(final HiveConf conf, final 
FileSystem destFs,
             }
           }
           files = fileStatuses.toArray(new FileStatus[files.length]);
+
+          if (HiveConf.getBoolVar(conf, 
HiveConf.ConfVars.HIVE_WRITE_ACID_VERSION_FILE)) {
+            AcidUtils.OrcAcidVersion.writeVersionFile(destf, destFs);
+          }

Review comment:
       Why write the version file to the destination file during MoveTask, if 
we already wrote one in FSOperator and we move everything that was written in 
FSOp to the destination file?

##########
File path: ql/src/test/org/apache/hadoop/hive/ql/TestTxnCommands.java
##########
@@ -25,9 +25,11 @@
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.Collections;
+import java.util.HashSet;
 import java.util.LinkedList;
 import java.util.List;
 import java.util.Optional;
+import java.util.Set;

Review comment:
       unused import




----------------------------------------------------------------
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:
[email protected]


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

    Worklog Id:     (was: 459362)
    Time Spent: 20m  (was: 10m)

> CRUD based compaction also should update ACID file version metadata
> -------------------------------------------------------------------
>
>                 Key: HIVE-23853
>                 URL: https://issues.apache.org/jira/browse/HIVE-23853
>             Project: Hive
>          Issue Type: Improvement
>          Components: Transactions
>            Reporter: Peter Vary
>            Assignee: Peter Vary
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Current CRUD compaction does not update the file metadata to contain the ACID 
> version. Also the {{_orc_acid_version}} version file is not created.
> We should do this to be consistent across the board.



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

Reply via email to