database.message.key.columns doesn''t work

174 views
Skip to first unread message

Gali Winer

unread,
Sep 13, 2022, 12:07:09 PM9/13/22
to debezium
Hey,

I am working with MySQL database and have database named redis_connect
and a table name test_pk with primary key id.
I want to get in the message key the column str instead of the id column so i added
to the application.properties the property:
debezium.source.database.message.key.columns = redis_connect.test_pk:str
I expect to get the str in the message key but i still get the id.
The debezium version i use is 1.9.5
attached is the application.properties file.
Thanks!,
Gali.


application.properties

Chris Cranford

unread,
Sep 14, 2022, 8:50:17 AM9/14/22
to debe...@googlegroups.com, Gali Winer
Hi Gail -

Please try with "debezium.source.message.key.columns".

Thanks,
Chris
--
You received this message because you are subscribed to the Google Groups "debezium" group.
To unsubscribe from this group and stop receiving emails from it, send an email to debezium+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/debezium/1a78d6f3-82b4-4574-bf4f-95bc753f4080n%40googlegroups.com.

Gali Winer

unread,
Sep 14, 2022, 9:37:57 AM9/14/22
to debezium
Hey Chris,
Its working!
thank you :-)
Gali
Reply all
Reply to author
Forward
0 new messages