asantoz commented on issue #13489:
URL: https://github.com/apache/iceberg/issues/13489#issuecomment-3144247985

   This issue seems related with Spark version 3.5.5 and I guess found possible 
workaround
   
   My environment:
   Spark: 3.5.5
   Iceberg SDK: 1.9.2
   Scala: 2.12
   
   ### ❌ Incorrect (Incomplete MERGE):
   ```sql
   MERGE INTO my_table AS t
   USING (SELECT * FROM reader_table) AS s
   ON s.id = t.id
   WHEN NOT MATCHED THEN INSERT *
   ```
   
   ### ✅ Correct (Complete MERGE):
   ```sql
   MERGE INTO my_table AS t
   USING (SELECT * FROM reader_table) AS s
   ON s.id = t.id
   WHEN MATCHED THEN UPDATE SET *
   WHEN NOT MATCHED THEN INSERT *
   ```
   
   This seems related with missing WHEN for match cases.
   Could you please validate in your side if solves it?


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to