nsivabalan commented on code in PR #13236:
URL: https://github.com/apache/hudi/pull/13236#discussion_r2071274928
##########
hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/client/SparkRDDWriteClient.java:
##########
@@ -143,8 +220,28 @@ public JavaRDD<WriteStatus>
upsertPreppedRecords(JavaRDD<HoodieRecord<T>> preppe
initTable(WriteOperationType.UPSERT_PREPPED,
Option.ofNullable(instantTime));
table.validateUpsertSchema();
preWrite(instantTime, WriteOperationType.UPSERT_PREPPED,
table.getMetaClient());
+ Option<HoodieTableMetadataWriter> metadataWriterOpt =
getMetadataWriter(instantTime, table.getMetaClient());
HoodieWriteMetadata<HoodieData<WriteStatus>> result =
table.upsertPrepped(context, instantTime, HoodieJavaRDD.of(preppedRecords));
- HoodieWriteMetadata<JavaRDD<WriteStatus>> resultRDD =
result.clone(HoodieJavaRDD.getJavaRDD(result.getWriteStatuses()));
+ HoodieData<WriteStatus> allWriteStatus =
maybeStreamWriteToMetadataTable(result, metadataWriterOpt, table, instantTime);
+ HoodieWriteMetadata<JavaRDD<WriteStatus>> resultRDD =
result.clone(HoodieJavaRDD.getJavaRDD(allWriteStatus));
+ return postWrite(resultRDD, instantTime, table);
+ }
+
+ @Override
+ public JavaRDD<WriteStatus>
upsertPreppedPartialRecords(JavaRDD<HoodieRecord<T>> preppedRecords, String
instantTime, boolean initialCall,
Review Comment:
upsertPreppedPartialRecords
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]