1
0

[HUDI-374] Unable to generateUpdates in QuickstartUtils (#1059)

This commit is contained in:
hongdd
2019-12-01 03:11:00 +08:00
committed by vinoth chandar
parent 024230fbd2
commit b65a897856

View File

@@ -162,7 +162,7 @@ public class QuickstartUtils {
String randomString = generateRandomString();
List<HoodieRecord> updates = new ArrayList<>();
for (int i = 0; i < n; i++) {
HoodieKey key = existingKeys.get(rand.nextInt(numExistingKeys - 1));
HoodieKey key = existingKeys.get(rand.nextInt(numExistingKeys));
HoodieRecord record = generateUpdateRecord(key, randomString);
updates.add(record);
}