yihua opened a new issue, #20896: URL: https://github.com/apache/hudi/issues/20896
On a table with a record key and no ordering field, a Spark SQL MERGE INTO without a `WHEN MATCHED ... UPDATE` clause is written as an insert, which skips the index lookup. Every source record then takes the not-matched clauses: a `WHEN MATCHED THEN DELETE` clause deletes nothing, and a `WHEN NOT MATCHED THEN INSERT` clause inserts a source record again under a key the table already holds, leaving two records with one key. Both succeed silently. -- 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]
