This is an automated email from the ASF dual-hosted git repository.
wangxianghu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hudi.git
The following commit(s) were added to refs/heads/master by this push:
new 60d4cb5 [MINOR] Fix typo, 'upsert' corrected to 'insert' in java
write example (#3809)
60d4cb5 is described below
commit 60d4cb505afcd11197a7742f9d6063125acbb91d
Author: jaxonzhang <[email protected]>
AuthorDate: Tue Oct 19 20:04:18 2021 +0800
[MINOR] Fix typo, 'upsert' corrected to 'insert' in java write example
(#3809)
---
.../org/apache/hudi/examples/java/HoodieJavaWriteClientExample.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/hudi-examples/src/main/java/org/apache/hudi/examples/java/HoodieJavaWriteClientExample.java
b/hudi-examples/src/main/java/org/apache/hudi/examples/java/HoodieJavaWriteClientExample.java
index 4d06e4d..587f73b 100644
---
a/hudi-examples/src/main/java/org/apache/hudi/examples/java/HoodieJavaWriteClientExample.java
+++
b/hudi-examples/src/main/java/org/apache/hudi/examples/java/HoodieJavaWriteClientExample.java
@@ -96,7 +96,7 @@ public class HoodieJavaWriteClientExample {
List<HoodieRecord<HoodieAvroPayload>> recordsSoFar = new
ArrayList<>(records);
List<HoodieRecord<HoodieAvroPayload>> writeRecords =
recordsSoFar.stream().map(r -> new
HoodieRecord<HoodieAvroPayload>(r)).collect(Collectors.toList());
- client.upsert(writeRecords, newCommitTime);
+ client.insert(writeRecords, newCommitTime);
// updates
newCommitTime = client.startCommit();