Amrish Lal created HUDI-6819:
--------------------------------
Summary: 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
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)