1
0

[HUDI-4101] BucketIndexPartitioner should take partition path for better dispersion (#5590)

This commit is contained in:
Danny Chan
2022-05-17 10:34:57 +08:00
committed by GitHub
parent fdd96cc97e
commit d52d13302d
4 changed files with 16 additions and 8 deletions

View File

@@ -73,7 +73,7 @@ public class BucketIdentifier implements Serializable {
.map(p -> p.split(":"))
.collect(Collectors.toMap(p -> p[0], p -> p[1]));
return indexKeyFields.stream()
.map(f -> recordKeyPairs.get(f)).collect(Collectors.toList());
.map(recordKeyPairs::get).collect(Collectors.toList());
}
public static String partitionBucketIdStr(String partition, int bucketId) {