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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]