maheshk114 commented on code in PR #3170:
URL: https://github.com/apache/hive/pull/3170#discussion_r849394666
##########
ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java:
##########
@@ -5215,7 +5215,7 @@ private static void moveAcidFiles(String deltaFileType,
PathFilter pathFilter, F
bucketDest.toUri().toString());
try {
fs.rename(bucketSrc, bucketDest);
- if (newFiles != null) {
+ if (newFiles != null && !newFiles.contains(bucketDest)) {
Review Comment:
Have you checked why there is a duplicate path here ? And also use Set
instead of List. List will become very expensive if the number of files is
large.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]