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

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

                Author: ASF GitHub Bot
            Created on: 23/Feb/21 12:56
            Start Date: 23/Feb/21 12:56
    Worklog Time Spent: 10m 
      Work Description: pvargacl commented on a change in pull request #1971:
URL: https://github.com/apache/hive/pull/1971#discussion_r581012265



##########
File path: ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java
##########
@@ -4521,7 +4523,9 @@ public static void handleDirectInsertTableFinalPath(Path 
specPath, String unionS
           for (int i = 0; i < partitionCount; ++i) {
             String nextPart = mdis.readUTF();
             Utilities.FILE_OP_LOGGER.debug("Looking at dynamic partition {}", 
nextPart);
-            dynamicPartitionSpecs.add(nextPart);
+            if (!dynamicPartitionSpecs.containsKey(nextPart)) {
+              dynamicPartitionSpecs.put(nextPart, new ArrayList<>());

Review comment:
       At the end it is used as a List in PartitionDetails, I could use a set 
here, but I would convert it anyway to a list.




----------------------------------------------------------------
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: 556320)
    Time Spent: 2.5h  (was: 2h 20m)

> Reuse committed filelist from directInsert manifest during loadPartition
> ------------------------------------------------------------------------
>
>                 Key: HIVE-24738
>                 URL: https://issues.apache.org/jira/browse/HIVE-24738
>             Project: Hive
>          Issue Type: Sub-task
>            Reporter: Peter Varga
>            Assignee: Peter Varga
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 2.5h
>  Remaining Estimate: 0h
>
> This way the costly FileSystem listing can be avoided



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

Reply via email to