bvaradar commented on issue #1836:
URL: https://github.com/apache/hudi/issues/1836#issuecomment-659046835
@ssomuah : If you look at other concrete implementations of
HoodieRecordPayload, there are 2 constructors defined. For example :
```
public OverwriteWithLatestAvroPayload(GenericRecord record, Comparable
orderingVal) {
super(record, orderingVal);
}
public OverwriteWithLatestAvroPayload(Option<GenericRecord> record) {
this(record.isPresent() ? record.get() : null, (record1) -> 0); //
natural order
}
```
You would need the same kind of constructors in your custom payload.
----------------------------------------------------------------
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]