yihua opened a new issue, #20889:
URL: https://github.com/apache/hudi/issues/20889

   A Spark SQL `INSERT INTO`, or a datasource write with the `insert` 
operation, into a table with a record key keeps every incoming row, even when 
two rows share a record key. `hoodie.datasource.insert.dup.policy` defaults to 
`none`, and its `fail` value only looks the incoming keys up in the table, so 
duplicates within one batch pass even then.
   
   For a table published in a non-native table format, whose readers expect the 
record key to identify one row, the duplicates break later UPDATE, DELETE and 
MERGE INTO statements with no signal at write time. Inserts into such tables 
should fail on duplicate keys by default, and `fail` should also catch keys 
repeated within a batch.
   


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