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

   A Spark SQL MERGE INTO on a merge-on-read table without a record key that 
has an ordering field fails when a source record takes its `WHEN MATCHED ... 
THEN DELETE` clause: the append handle throws `NoSuchElementException: No value 
present in Option` and the statement fails with "Merge into Hoodie table 
command failed". The write builds each source record with its delete flag fixed 
to false, so the delete that the MERGE INTO clauses decide at write time is 
written as an update with no value. Such tables cannot take a delete through 
MERGE INTO at all.
   


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