pvargacl commented on a change in pull request #1971:
URL: https://github.com/apache/hive/pull/1971#discussion_r581010051



##########
File path: ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java
##########
@@ -2862,29 +2862,29 @@ public boolean skipProcessing(Task<?> task) {
    * corresponding to these dynamic partitions.
    */
   public static Map<Path, PartitionDetails> getFullDPSpecs(Configuration conf, 
DynamicPartitionCtx dpCtx,
-      Set<String> dynamicPartitionSpecs) throws HiveException {
+      Map<String, List<Path>> dynamicPartitionSpecs) throws HiveException {
 
     try {
       Path loadPath = dpCtx.getRootPath();
       FileSystem fs = loadPath.getFileSystem(conf);
       int numDPCols = dpCtx.getNumDPCols();
-      List<Path> allPartition = new ArrayList<>();
+      Map<Path, List<Path>> allPartition = new HashMap<>();
       if (dynamicPartitionSpecs != null) {
-        for (String partSpec : dynamicPartitionSpecs) {
-          allPartition.add(new Path(loadPath, partSpec));
+        for (Map.Entry<String, List<Path>> partSpec : 
dynamicPartitionSpecs.entrySet()) {
+          allPartition.put(new Path(loadPath, partSpec.getKey()), 
partSpec.getValue());
         }
       } else {
         List<FileStatus> status = 
HiveStatsUtils.getFileStatusRecurse(loadPath, numDPCols, fs);
         for (FileStatus fileStatus : status) {
-          allPartition.add(fileStatus.getPath());
+          allPartition.put(fileStatus.getPath(), null);

Review comment:
       done




----------------------------------------------------------------
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]

Reply via email to