massquantity opened a new issue #3018:
URL: https://github.com/apache/iceberg/issues/3018


   I'm trying to use [`MERGE 
INTO`](https://iceberg.apache.org/spark-writes/#Writing%20with%20SQL) in spark 
3 to update data. But the error message shows: 
`java.lang.UnsupportedOperationException: MERGE INTO TABLE is not supported 
temporarily.`
   
   I used the following statement:
   ```shell
   bin/spark-sql --jars 
/opt/spark/jars/iceberg-spark3-runtime-0.11.1.jar,/opt/spark/jars/url-connection-client-2.15.40.jar,/opt/spark/jars/bundle-2.15.40.jar
 \
       --conf 
spark.sql.catalog.lake_catalog=org.apache.iceberg.spark.SparkCatalog \
       --conf spark.sql.catalog.lake_catalog.warehouse=s3://bucket_name/key \
       --conf 
spark.sql.catalog.lake_catalog.catalog-impl=org.apache.iceberg.aws.glue.GlueCatalog
 \
       --conf 
spark.sql.catalog.lake_catalog.io-impl=org.apache.iceberg.aws.s3.S3FileIO
   ```
   
   ```shell
   MERGE INTO lake_catalog.sampledb.table t
                USING (SELECT * FROM lake_catalog.sampledb.table2 WHERE index 
BETWEEN 0 AND 1) s
                ON t.index = s.index
                WHEN MATCHED THEN UPDATE SET t.index = 0
   ```


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