Hi Folks, I'm working on a POC where we have a req...
# troubleshooting
r
Hi Folks, I'm working on a POC where we have a requirement on updating and deleting records during the batch mode. With this I'm trying to achieve equality deletes. Somehow I'm not able to achieve this. what am I missing here? Specs - • Flink version - 1.18.1 • Iceberg runtime - iceberg-flink-runtime-1.17-1.4.3.jar
Copy code
SET 'execution.runtime-mode' = 'batch';
---------------------------------------------
CREATE TABLE IF NOT EXISTS user_details (
user_id int,
name string,
phone_number int,
email string
)
WITH (
    'type'='iceberg',
    'format-version'='2',
    'write.format.default'='parquet',
     'write.delete.mode'='merge-on-read',
     'write.update.mode'='merge-on-read',
     'write.merge.mode'='merge-on-read'
);
---------------------------------------------
insert into user_details values (1,'jon', 123, 'abc@e6data.com'), (2,'doe', 123, 'xyz@e6data.com')
---------------------------------------------
delete from user_details where user_id = 1;
When I try to update or delete, I'm getting below exception,
Copy code
[ERROR] Could not execute SQL statement. Reason:
java.lang.UnsupportedOperationException: Can't perform update operation of the table iceberg_hive.mydb.user_details because the corresponding dynamic table sink has not yet implemented org.apache.flink.table.connector.sink.abilities.SupportsRowLevelUpdate.
Thanks !