hudi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [incubator-hudi] bvaradar commented on a change in pull request #1368: [HUDI-650] Modify handleUpdate path to validate partitionPath
Date Thu, 19 Mar 2020 19:02:53 GMT
bvaradar 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_r395229769
 
 

 ##########
 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:
   Same here. 

----------------------------------------------------------------
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

Mime
View raw message