danny0405 commented on code in PR #13445:
URL: https://github.com/apache/hudi/pull/13445#discussion_r2151109547


##########
hudi-common/src/main/java/org/apache/hudi/avro/HoodieAvroReaderContext.java:
##########
@@ -120,7 +118,7 @@ public GenericRecord convertToAvroRecord(IndexedRecord 
record, Schema schema) {
 
   @Override
   public IndexedRecord getDeleteRow(IndexedRecord record, String recordKey) {
-    throw new UnsupportedOperationException("Not supported for " + 
this.getClass().getSimpleName());
+    return new DeleteRecord(recordKey, record);

Review Comment:
   The API is designed to return a record with the record keys set up ready in 
the record fields instead of a wrapper.
   Things like `DeleteRecord.getRecordKey` is not a general API for readers..



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to