bkahloon opened a new issue #2172:
URL: https://github.com/apache/iceberg/issues/2172
I'm facing some issues with writing a Flink changelog table to an Icberg
table (maybe my query is wrong).
My Flink CDC query
```
CREATE TABLE shipments (
shipment_id INT,
origin STRING,
is_arrived BOOLEAN,
order_date DATE
) WITH (
'connector' = 'postgres-cdc',
'hostname' = 'dummy-db.us-east-1.rds.amazonaws.com',
'port' = '5432',
'username' = 'postgres',
'password' = '********',
'database-name' = 'postgres',
'schema-name' = 'public',
'table-name' = 'shipments',
'decoding.plugin.name'= 'pgoutput'
);
```
Creation of Iceberg table after I switch the catalog to my Iceberg catalog
(catalog implementation is AWS Glue, confirmed that I'm able to connect to Glue
Catalog).
```
CREATE TABLE shipments(
shipment_id INT,
origin STRING,
is_arrived BOOLEAN,
order_date DATE
)PARTITIONED BY (order_date);
```
Then I tried to insert the changelog table into the Iceberg table
```
Flink SQL> INSERT INTO iceberg.iceberg.shipments SELECT * FROM
default_catalog.default_database.shipments;
[INFO] Submitting SQL update statement to the cluster...
[ERROR] Could not execute SQL statement. Reason:
org.apache.flink.table.api.TableException: AppendStreamTableSink doesn't
support consuming update and delete changes which is produced by node
TableSourceScan(table=[[default_catalog, default_database, shipments]],
fields=[shipment_id, origin, is_arrived, order_date])
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]