Thijs van de Poll
04/19/2023, 10:57 AM-D[1,83819211,545900928]
+I[-83819211,83819211,545900928]
This is expected, it should remove the record having primary key 1, and insert the record having primary key -83819211.
If I check the database after this change, I see the following:
-----------+----------------+--------------------
-83819211 | 83819211 | 545900928
1 | 83819211 | 545900928
It suggests that the delete statement has not been executed. Anyone that can help?Thijs van de Poll
04/19/2023, 11:07 AMMartijn Visser
04/19/2023, 11:10 AMThijs van de Poll
04/19/2023, 11:10 AMMartijn Visser
04/19/2023, 11:11 AMThijs van de Poll
04/19/2023, 11:15 AM(
`family_id` INT NOT NULL,
`representative` INT NOT NULL,
`invention_title_id` BIGINT,
CONSTRAINT `PK_family_id` PRIMARY KEY (`family_id`) NOT ENFORCED
)
COMMENT ''
WITH (
'password' = 'root',
'connector' = 'jdbc',
'driver' = 'org.postgresql.Driver',
'table-name' = 'family',
'url' = 'jdbc:<postgresql://localhost:5432/database>',
'username' = 'root'
)Thijs van de Poll
04/19/2023, 11:19 AMorg.apache.flink.table.runtime.operators.sink.SinkUpsertMaterializer [] - The state is cleared because of state ttl. This will result in incorrect result. You can increase the state ttl to avoid this.
Not sure if it may have anything to do with it?Thijs van de Poll
04/19/2023, 1:01 PMThijs van de Poll
04/19/2023, 1:09 PMlast_modified ,
• When inserting I use current_timestamp function to insert timestamps upon insert.
• It turns out that adding this functionality causes: org.apache.flink.table.runtime.operators.sink.SinkUpsertMaterializer [] - The state is cleared because of state ttl. This will result in incorrect result. You can increase the state ttl to avoid this.
• After removing this column, no messages like the above are shown anymore. Even better, the print sink table starts showing I/D messages again.
Now I will test again with the Postgres JDBC sink to see if that also works.Thijs van de Poll
04/19/2023, 1:14 PMcurrent_timestamp caused this bug. Is there any explanation for that?