Skip to content

Commit

Permalink
[HUDI-4742] Fix AWS Glue partition's location is wrong when updatePar…
Browse files Browse the repository at this point in the history
…tition (apache#6545)

Co-authored-by: xxhua <xxhua@freewheel.tv>
  • Loading branch information
2 people authored and fengjian committed Apr 5, 2023
1 parent cebe0d1 commit c13a165
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public void updatePartitionsToTable(String tableName, List<String> changedPartit
StorageDescriptor partitionSd = sd.clone();
String fullPartitionPath = FSUtils.getPartitionPath(getBasePath(), partition).toString();
List<String> partitionValues = partitionValueExtractor.extractPartitionValuesInPath(partition);
sd.setLocation(fullPartitionPath);
partitionSd.setLocation(fullPartitionPath);
PartitionInput partitionInput = new PartitionInput().withValues(partitionValues).withStorageDescriptor(partitionSd);
return new BatchUpdatePartitionRequestEntry().withPartitionInput(partitionInput).withPartitionValueList(partitionValues);
}).collect(Collectors.toList());
Expand Down

0 comments on commit c13a165

Please sign in to comment.