a-uddhav commented on issue #1669:
URL: https://github.com/apache/hudi/issues/1669#issuecomment-634449462


   I figured what was I doing wrong. I had missed a constructor to the payload 
class.
   ```
   class RecordPayloadClass (val genericRecord: GenericRecord, val comparable: 
Comparable[Int])
     extends BaseAvroPayload(genericRecord, comparable)
       with HoodieRecordPayload[RecordPayloadClass]{
   
   =====  added constructor ======
     // required by SpillableMapUtils.convertToHoodieRecordPayload
     def this(optionalRecord: Option[GenericRecord]) {
       this(optionalRecord.get(), 1)
     }
   
     override def preCombine(another: RecordPayloadClass): RecordPayloadClass  
= {
   ....
   ```
   I will close this issue.
   
   


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


Reply via email to