You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2019/11/09 06:36:15 UTC

[GitHub] [incubator-hudi] bvaradar commented on a change in pull request #1004: [HUDI-15] Adding delete api to HoodieWriteClient

bvaradar commented on a change in pull request #1004: [HUDI-15] Adding delete api to HoodieWriteClient
URL: https://github.com/apache/incubator-hudi/pull/1004#discussion_r344431161
 
 

 ##########
 File path: hudi-client/src/main/java/org/apache/hudi/HoodieWriteClient.java
 ##########
 @@ -366,10 +392,19 @@ private void commitOnAutoCommit(String commitTime, JavaRDD<WriteStatus> resultRD
 
   private JavaRDD<HoodieRecord<T>> combineOnCondition(boolean condition, JavaRDD<HoodieRecord<T>> records,
       int parallelism) {
+    return condition ? deduplicateRecords(records, parallelism) : records;
+  }
+
+  private JavaRDD<HoodieKey> combineKeysOnCondition(boolean condition, JavaRDD<HoodieKey> keys,
 
 Review comment:
   Again see if this separate function needed. See if this can be inline as it is used in only one place and looks trivial

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services