ashutoshc commented on a change in pull request #552: Hive 21279 URL: https://github.com/apache/hive/pull/552#discussion_r260597344
########## File path: ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java ########## @@ -1204,6 +1203,18 @@ private static void moveSpecifiedFiles(FileSystem fs, Path src, Path dst, Set<Pa } } + public static void moveSpecifiedFiles(FileSystem fs, Path dst, Set<Path> filesToMove) + throws IOException, HiveException { + if (!fs.exists(dst)) { + fs.mkdirs(dst); Review comment: Can you check mkdirs() contract. I think if dst exists, it will return silently. i.e., no need to check for exists() first. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on 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 With regards, Apache Git Services