Gunnar this message.key.columns worked thank You for this one.
But there is still issue when primary keys on target prevent from two same rows in source.
For example:
1) insert into table values (21,'Dominik',Dom')
Source Target
Table Table
__________________ ___________________
| AGE | Name| Nick |
| AGE | Name| Nick |
| 21| Dominik| Dom|
| 21| Dominik| Dom|
__________________ ___________________
2) insert into table values (21,'Sebastian',Seb')
Source Target
Table Table
__________________ ___________________
| AGE | Name| Nick | | AGE | Name| Nick |
| 21| Dominik| Dom| | 21| Dominik| Dom|
| 21| Sebastian| Seb| | 21| Sebastian| Seb|
__________________ ___________________
3) update table set Name = Dominik where AGE = 21
Source Target
Table Table
__________________ ___________________
| AGE | Name| Nick | | AGE | Name| Nick |
| 21| Dominik| Dom| | 21| Dominik| Dom|
| 21| Dominik| Seb| | 21| Dominik| Seb|
__________________ ___________________
4) update table set Nick= Dom where AGE = 21
Source Target
Table Table
__________________ ___________________
| AGE | Name| Nick | | AGE | Name| Nick |
| 21| Dominik| Dom| | 21| Dominik| Dom|
| 21| Dominik| Dom| X - no row error with unique key
__________________ ___________________
I know this question is more about Confluent JDBC Sink but maybe You have any idea how I can manages this ?