[ https://issues.apache.org/jira/browse/HUDI-6819?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vova Kolmakov closed HUDI-6819. ------------------------------- Resolution: Invalid no such code in current master branch > Fix logic to throw exception in HoodieBackedTableMetadataWriter > --------------------------------------------------------------- > > Key: HUDI-6819 > URL: https://issues.apache.org/jira/browse/HUDI-6819 > Project: Apache Hudi > Issue Type: Bug > Reporter: Amrish Lal > Priority: Major > > The code > {code:java} > if (recordDelegate1.getNewLocation().isPresent() && > recordDelegate2.getNewLocation().isPresent()) { > throw new HoodieIOException("Both version of records does not > have location set. Record V1 " + recordDelegate1.toString() > + ", Record V2 " + recordDelegate2.toString()); > } {code} > should be: > {code:java} > if (!recordDelegate1.getNewLocation().isPresent() && > !recordDelegate2.getNewLocation().isPresent()) { > throw new HoodieIOException("Both version of records do not have location > set. Record V1 " + recordDelegate1.toString() > + ", Record V2 " + recordDelegate2.toString()); > } {code} > > -- This message was sent by Atlassian Jira (v8.20.10#820010)