Sugamber edited a comment on issue #2637:
URL: https://github.com/apache/hudi/issues/2637#issuecomment-804636424


   I have created one class after implementing HoodieRecordPayload. We have 
three methods for which we have to write our logic.
   1. preCombine
   2. combineAndGetUpdateValue
   3. getInsertValue
   @n3nash  As per your above explanation,  preCombine would provide the 
current record which is coming in incremental load and combineAndGetUpdateValue 
will provide the latest records from hoodie table.
   Please correct me if my understanding is incorrect.
   
   In my use case , I'm only getting few columns out of 20 in incremental data. 
preCombine method does not have any schema details.
   For Example - Hudi table  built with 20 columns. Now, requirement is to 
update only 3 columns and only these columns data is coming from incremental 
data feeds along with RECORDKEY_FIELD_OPT_KEY,PARTITIONPATH_FIELD_OPT_KEY and 
PRECOMBINE_FIELD_OPT_KEY column.
   I have implemented the class as below. Please let me know in which method, 
I'll be getting  full schema of the table.
   


-- 
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:
us...@infra.apache.org


Reply via email to