satishkotha commented on a change in pull request #1368: [HUDI-650] Modify 
handleUpdate path to validate partitionPath
URL: https://github.com/apache/incubator-hudi/pull/1368#discussion_r395389042
 
 

 ##########
 File path: hudi-client/src/main/java/org/apache/hudi/io/HoodieMergeHandle.java
 ##########
 @@ -236,6 +233,10 @@ private boolean writeUpdateRecord(HoodieRecord<T> 
hoodieRecord, Option<IndexedRe
 
   private boolean writeRecord(HoodieRecord<T> hoodieRecord, 
Option<IndexedRecord> indexedRecord) {
     Option recordMetadata = hoodieRecord.getData().getMetadata();
+    if (!partitionPath.equals(hoodieRecord.getPartitionPath())) {
+      writeStatus.markFailure(hoodieRecord, new 
HoodieUpsertException("mismatched partition path"), recordMetadata);
 
 Review comment:
   done

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to