deepakpanda93 commented on issue #17734:
URL: https://github.com/apache/hudi/issues/17734#issuecomment-3696890245

   Hello @bithw1 
   
   In this case:
   - a is the record key
   - c is the precombine field
   
   Hudi guarantees only one record per primary key per commit. When multiple 
rows share the same primary key within the same insert, Hudi keeps only one 
row, chosen using the precombine field.
   
   `hoodie.table.precombine.field` | Field used in preCombining before actual 
write. By default, when two records have the same key value, the largest value 
for the precombine field determined by Object.compareTo(..), is picked.
   
   In this case for the recordKey `1`, the precombineKey having the largest 
value is `7`. So only (1,4,7) survives.


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