alex2308 opened a new issue, #6615:
URL: https://github.com/apache/iceberg/issues/6615

   ### Apache Iceberg version
   
   1.1.0 (latest release)
   
   ### Query engine
   
   Spark
   
   ### Please describe the bug 🐞
   
   I'm trying to update an existing table with the merge into operation using a 
local dataframe as source for my updates, when doing that I get an error: 
"Requirement failed", any idea how to fix that?
   
   Here is the merge statement:
   `MERGE INTO iceberg_catalog.dummy.affinity_scores_iceberg a
       USING affinity
       ON a.mediauser_marketingid = affinity.mediauser_marketingid and 
a.touchpoint_touchpointbrand=affinity.touchpoint_touchpointbrand and 
a.affinity_subject=affinity.affinity_subject 
       WHEN MATCHED AND a.affinity_score<>affinity.affinity_score then update 
set a.affinity_score=affinity.affinity_score
       WHEN NOT MATCHED THEN INSERT *`
   
   Where affinity is a dataframe that is created as a temp view with the 
following line:
   `affinity_scores_latest.createTempView("affinity")`


-- 
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: issues-unsubscr...@iceberg.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to